CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > ParaView

[General] scalarBar orientation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 24, 2018, 15:00
Default scalarBar orientation
  #1
New Member
 
Mike
Join Date: Feb 2018
Posts: 12
Rep Power: 8
Superdude_123 is on a distinguished road
How do I set in my python my scale bar orientation to horizontal?

I've looked at this posting, however, no luck.

Here's a snap shot of my code:

Code:
# reset view to fit data
renderView1.ResetCamera()

# toggle 3D widget visibility (only when running from the GUI)
Hide3DWidgets(proxy=slice1)

# change representation type
slice1Display.SetRepresentationType('Surface LIC')

#changing interaction mode based on data extents
renderView1.InteractionMode = '2D'
renderView1.CameraFocalPoint = [1.2949999573174864, 1.3011239464394748, 155.0100000000000000]

# set scalar coloring
ColorBy(slice1Display, ('POINTS', 'T'))

# show color bar/color legend
slice1Display.SetScalarBarVisibility(renderView1, True)
scalarBar.Orientation = 'Horizontal'

# get color transfer function/color map for 'T'
tLUT = GetColorTransferFunction('T')
tLUT.LockDataRange = 1
tLUT.RGBPoints = [250.0, 0.231373, 0.298039, 0.752941, 276.0, 0.865003, 0.865003, 0.865003, 300.0, 0.705882, 0.0156863, 0.14902]
tLUT.ScalarRangeInitialized = 1.0

# get opacity transfer function/opacity map for 'T'
#tPWF = GetOpacityTransferFunction('T')
#tPWF.Points = [250.0, 0.0, 0.5, 0.0, 300.0, 1.0, 0.5, 0.0]
#tPWF.ScalarRangeInitialized = 1

# Rescale to 250-300 K
#tPWF.RescaleTransferFunction(250.0, 300.0)
As a side bar, can I change the text values of my temperature scale from 250K-300K to -23.15C - 26.85C?
Superdude_123 is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
orientation in dynamicMeshDict fluidpage OpenFOAM Running, Solving & CFD 1 April 13, 2018 03:11
Not defined orientation change while running SU2_CFD mdawson25 SU2 4 May 11, 2017 09:52
surface orientation airfoil/domain always misaligned klausb enGrid 7 March 29, 2016 02:34
Face orientation in blockMesh WiWo OpenFOAM 0 March 18, 2010 11:10
Multicomponent fluid Andrea CFX 2 October 11, 2004 05:12


All times are GMT -4. The time now is 12:49.