When selecting a field to color by in Python, should default to same color map as GUI
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
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.