New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VTK not mapping? #871

Closed
doutriaux1 opened this Issue Nov 4, 2014 · 0 comments

Comments

Projects
None yet
2 participants
@doutriaux1
Member

doutriaux1 commented Nov 4, 2014

In case of multiple mappers only the last one seems to be drawn, might be same issue as #855
data can be found at:

https://github.com/doutriaux1/VTKLearning/blob/master/uvcdat_bugs/charles.nc

Code:

import cdms2,vcs,os,sys,numpy
x=vcs.init()
b=x.createboxfill()
b.levels=numpy.arange(.5,15.5).tolist()
cols = vcs.getcolors(b.levels)
b.fillareacolors=cols
b.boxfill_type="custom"
pth= os.path.dirname(__file__)
f=cdms2.open(os.path.join(pth,"charles.nc"))
s=f("data2") 
x.plot(s,b)
x.png("lastmapper")
raw_input("Press enter")

png

lastmapper

w/o specification of levels we cansee there is data everywhere
lastmapper

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment