Juerg Schmidli wrote: > 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.
One ugly way around this is to reset the low and high limits after you set the timestep and then reset the contour range. This auto limiting of the contours feature that I added is a source of many irritations. I'm inclined to either remove it completely or make it optional. Comments from users would be appreciated. cheers, prabhu ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ MayaVi-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mayavi-users
