|
[Sponsors] |
May 24, 2018, 15:00 |
scalarBar orientation
|
#1 |
New Member
Mike
Join Date: Feb 2018
Posts: 12
Rep Power: 8 |
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) |
|
|
|
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 |