Hi

How can I plot a series of data (e.g. vertical velocity field at
different times) with identical contouring?

I tried the following:
     cgp = ContourGridPlane()
     mayavi.add_module(cgp)
     cgp.module_manager.scalar_lut_manager.lut_mode = 'hsv'
     cgp.module_manager.scalar_lut_manager.use_default_range = False
     cgp.module_manager.scalar_lut_manager.data_range = (-2,2)
     cgp.contour.filled_contours = True
     cgp.contour.auto_contours = False
     cgp.contour.contours = list((-1.6,-1.2,-0.8,-0.4,0,0.4,0.8,1.2,1.6))

This works fine as long as the interval(-1.6,1.6) lies within the range
of the data. If, however, the range of data values is smaller than the
interval (-1.6,1.6), a TraitError occurs. Any suggestions would be
appreciated.

Thanks in advance,
Juerg



-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
MayaVi-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mayavi-users

Reply via email to