When plotting, 120 pictures and clearing the canvas to plot another image takes longer and longer as time goes on. The memory is growing so it much be calling VTK pipeline commands and copying data instead of pointing to the data.
import vcs, cdms2
cdmsfile = cdms2.open( 'clt.nc' )
data = cdmsfile('clt')
x=vcs.init()
ts=time.time()
for i in range (120):
x.plot(data[i]) # or run it in background mode x.plot(data[I], bg=1) --> the time to run is the same
x.clear()
Could there be something in VTK that causes the plots to generate slowly?
When plotting, 120 pictures and clearing the canvas to plot another image takes longer and longer as time goes on. The memory is growing so it much be calling VTK pipeline commands and copying data instead of pointing to the data.
Could there be something in VTK that causes the plots to generate slowly?