Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • ParaView ParaView
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,841
    • Issues 1,841
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 88
    • Merge requests 88
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • ParaView
  • ParaViewParaView
  • Issues
  • #16964
Closed
Open
Created Oct 11, 2016 by Kenneth Moreland@kmorelDeveloper

ColorBy function does not manage color legend

When you are changing the field variable you are coloring a mesh by in the GUI, the scalar bar annotation is updated to give you a color legend with the displayed field. However, when you use the Python ColorBy function, which is supposed to set up the coloring in the same way as the GUI, the color legend is not updated. To replicate, do the following:

  1. Load disk_out_ref.ex2. Turn on all variables. Apply.
  2. Open the Python Shell.
  3. Type the command
ColorBy(GetRepresentation(), ('POINTS', 'Pres'))

The points get colored correctly, but the color bar is not changed to the new coloring. If the view had a color bar in the view before calling ColorBy, it sticks around after the colors change, which makes it hard to get rid of. The correct behavior is to get rid of color bars that are not used anymore and add the one that is.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking