MantisBT - ParaView
View Issue Details
0009558ParaViewBugpublic2009-09-17 11:212016-08-12 09:57
Ken Moreland 
Kitware Robot 
normalminorhave not tried
closedmoved 
 
 
0009558: When selecting a field to color by in Python, should default to same color map as GUI
Consider the following Python script typed in the Python shell of the GUI.

Sphere()
Elevation()
rep = GetRepresentation()
rep.ColorArrayName = 'Elevation'
Show()
Render()

Now take a look at the color map in the GUI. It should be taking the default color map in the ParaView settings. Instead, it is taking whatever the default is defined in VTK. It is a crummy default and is scaled wrong. You cannot access the color map being used, you have to create a new one. The color map is not shown properly if you open the Color Scale Editor.

When you set an array to color by, a new lookup table that is accessible to the GUI should be created. It should default to whatever the user has as the default in the ParaView settings or to some application default if the settings are not available. The scale of the lookup table should also be set in the same way it is set in the GUI.
No tags attached.
child of 0009557closed Kitware Robot Setting lookup tables in Python scripts should mirror that in GUI 
Issue History
2009-09-17 11:21Ken MorelandNew Issue
2009-09-17 11:21Ken MorelandRelationship addedchild of 0009557
2016-08-12 09:57Kitware RobotNote Added: 0037712
2016-08-12 09:57Kitware RobotStatusexpired => closed
2016-08-12 09:57Kitware RobotResolutionopen => moved
2016-08-12 09:57Kitware RobotAssigned To => Kitware Robot

Notes
(0037712)
Kitware Robot   
2016-08-12 09:57   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current ParaView Issues page linked in the banner at the top of this page.