View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0008543ParaView(No Category)public2009-02-16 13:572016-07-26 17:16
ReporterUtkarsh Ayachit 
Assigned ToUtkarsh Ayachit 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionSomedayFixed in Version 
Summary0008543: Color bar from python
DescriptionMake is easy to create/access scalar bar/color bar from python.
Additional InformationConvesation:
Ken: How do you turn on the color bar from Python?

Berk: Not easy to do....

Ken: Can we move the responsibility of scalar bar management to the representation object? That way, either the GUI or a python script need only turn on a flag in the representation and the lookup table and range will be set up for you. It could also satisfy a request from the mailing list to keep the scalar bar up (or down) when changing variables to color by.
TagsNo tags attached.
Project
Topic Name
Type
Attached Files

 Relationships

  Notes
(0036537)
Cory Quammen (developer)
2016-07-21 13:29

This is easy nowadays:

# create a new 'Sphere'
sphere1 = Sphere()

# get active view
renderView1 = GetActiveViewOrCreate('RenderView')

# show data in view
sphere1Display = Show(sphere1, renderView1)

# set scalar coloring
ColorBy(sphere1Display, ('POINTS', 'Normals'))

# show color bar/color legend
sphere1Display.SetScalarBarVisibility(renderView1, True)

# get color transfer function/color map for 'Normals'
normalsLUT = GetColorTransferFunction('Normals')

# get opacity transfer function/opacity map for 'Normals'
normalsPWF = GetOpacityTransferFunction('Normals')
(0036615)
Alan Scott (manager)
2016-07-26 17:16

Testing directions below miss a Render(). After using a Render, this worked correctly.

Tested local server, Linux, master.

 Issue History
Date Modified Username Field Change
2009-02-16 13:57 Utkarsh Ayachit New Issue
2009-02-17 16:58 Utkarsh Ayachit Status backlog => tabled
2009-02-17 16:58 Utkarsh Ayachit Assigned To => Utkarsh Ayachit
2011-01-21 13:37 Utkarsh Ayachit Target Version => Someday
2011-06-16 13:10 Zack Galbreath Category => (No Category)
2016-07-21 13:29 Cory Quammen Note Added: 0036537
2016-07-21 13:29 Cory Quammen Status backlog => closed
2016-07-21 13:29 Cory Quammen Resolution open => fixed
2016-07-25 22:49 Cory Quammen Status closed => backlog
2016-07-25 22:49 Cory Quammen Resolution fixed => reopened
2016-07-25 22:49 Cory Quammen Status backlog => customer review
2016-07-25 22:49 Cory Quammen Resolution reopened => fixed
2016-07-26 17:16 Alan Scott Note Added: 0036615
2016-07-26 17:16 Alan Scott Status customer review => closed


Copyright © 2000 - 2018 MantisBT Team