Skip to content

drawing of colorbar in vcs too slow #849

@doutriaux1

Description

@doutriaux1

the following code, takes around .5sec just to draw the colorbar.

import cdms2,sys,vcs
x=vcs.init()
f=cdms2.open(sys.prefix+"/sample_data/clt.nc")
s=f("clt")
x.plot(s)

The code to draw the colorbar should be rewritten in pure VTK.
current code:
https://github.com/UV-CDAT/uvcdat/blob/master/Packages/vcs/Lib/template.py#L1369

in the vtkbackend we call it at:
https://github.com/UV-CDAT/uvcdat/blob/master/Packages/vcs/Lib/VTKPlots.py#L1127

I think we should update
vtkScalarBarActor

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions