[Paraview] Changing colormap parameters in a Catalyst script

Dorier, Matthieu mdorier at anl.gov
Fri Oct 30 14:59:54 EDT 2015


Hi,

I have generated a Catalyst python script that produces a colormap on a slice of a 3D rectilinear grid. I would like to use the same script for another variable of the simulation, but the range of data is not the same. How can I adapt the script, both in case where I know the new data range, and in case I don't know and want the colormap to simply figure it out?

I believe the part of the script that deals with that is as follows:

a1_dbz_PiecewiseFunction = CreatePiecewiseFunction( Points=[-36.903831481933594, 0.0, 0.5, 0.0, 57.036045074462891, 1.0, 0.5, 0.0] )

a1_dbz_PVLookupTable = GetLookupTableForArray( "dbz", 1, RGBPoints=[-36.903831481933594, 0.23000000000000001, 0.29899999999999999, 0.754, 10.066106796264648, 0.86499999999999999, 0.86499999999999999, 0.86499999999999999, 57.036045074462891, 0.70599999999999996, 0.016, 0.14999999999999999], VectorMode='Magnitude', NanColor=[0.25, 0.0, 0.0], ScalarOpacityFunction=a1_dbz_PiecewiseFunction, ColorSpace='Diverging', ScalarRangeInitialized=1.0 )

But I don't know how to adapt it.

Thanks,

Matthieu


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20151030/067b58f8/attachment.html>


More information about the ParaView mailing list