Skip to content

The plotting of 120 plots and clearing is taking too long #715

@williams13

Description

@williams13

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?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions