[Paraview] python script how to change Data Range

小縣信也 so0208jp at gmail.com
Tue Jan 18 03:11:23 EST 2011


Hi paraviewers!

I tried to change Data Range of color bar by paraview python script.
But It didn't work.
Does someone know the reasson?
Is there another way to change Data Range in script?

Kind Regards,
Shinya

---------------------code which I rtied----------------------------------

ScalarBarWidgetRepresentation2 = CreateScalarBar( Title='p',
Position2=[0.13, 0.5], Enabled=1, LabelFontSize=12, LabelColor=[0.47,
0.47, 0.47], TitleFontSize=12, TitleColor=[0.47, 0.47, 0.47],
Position=[0.87, 0.25] )

1_p_PVLookupTable = GetLookupTableForArray( "p", 1, RGBPoints=[0.0,
0.0, 0.0, 1.0, 0.5, 1.0, 0.0, 0.0], ScalarRangeInitialized=1.0 )
ScalarBarWidgetRepresentation2.LookupTable = a1_p_PVLookupTable


More information about the ParaView mailing list