]> SALOME platform Git repositories - modules/paravis.git/commitdiff
Salome HOME
ScalarBar Update
authorMathieu Westphal <mathieu.westphal@kitware.com>
Wed, 3 May 2017 13:20:53 +0000 (15:20 +0200)
committerCédric Aguerre <cedric.aguerre@edf.fr>
Tue, 9 May 2017 15:03:58 +0000 (17:03 +0200)
src/Plugins/MEDReader/Test/Baselines/testMEDReader15.png
src/Plugins/MEDReader/Test/Baselines/testMEDReader20.png
src/Plugins/MEDReader/Test/Baselines/testMEDReader21.png
src/Plugins/MEDReader/Test/testMEDReader15.py
src/Plugins/MEDReader/Test/testMEDReader20.py
src/Plugins/MEDReader/Test/testMEDReader21.py

index 7e78fd13ed13516b8093d8efa73f9b4992530150..4af9e7ea9e16284c9444d89cb75b9470415feb10 100644 (file)
Binary files a/src/Plugins/MEDReader/Test/Baselines/testMEDReader15.png and b/src/Plugins/MEDReader/Test/Baselines/testMEDReader15.png differ
index f84b3a27ba67cbc8610ca67a8fb41f72f83c781d..71cbf86794f8e69d513e14bd047652b3c7625007 100644 (file)
Binary files a/src/Plugins/MEDReader/Test/Baselines/testMEDReader20.png and b/src/Plugins/MEDReader/Test/Baselines/testMEDReader20.png differ
index bd87d10582b215bb78eb4a9134446d33459ef1b5..6421dbc33825f66066eb877db508c4cdd315265d 100644 (file)
Binary files a/src/Plugins/MEDReader/Test/Baselines/testMEDReader21.png and b/src/Plugins/MEDReader/Test/Baselines/testMEDReader21.png differ
index a68d7010a33c8128526ab600c0cd76ce9d97cec5..a88dc9df7a7814781d484983eec4b5ba3f0af48e 100644 (file)
@@ -61,14 +61,12 @@ zeNameLUT.VectorMode = 'Component'
 glyph1Display=Show(glyph1,renderView1)
 glyph1Display.ColorArrayName = ['POINTS', 'FamilyIdNode']
 glyph1Display.LookupTable = zeNameLUT
-# show color bar/color legend
-glyph1Display.SetScalarBarVisibility(renderView1, True)
 # set scalar coloring
 ColorBy(glyph1Display, ('POINTS', 'zeName'))
 # rescale color and/or opacity maps used to include current data range
 glyph1Display.RescaleTransferFunctionToDataRange(True)
-# show color bar/color legend
-glyph1Display.SetScalarBarVisibility(renderView1, True)
+# do not show color bar/color legend
+glyph1Display.SetScalarBarVisibility(renderView1, False)
 #
 renderView1.ViewSize =[300,300]
 renderView1.GetRenderWindow().DoubleBufferOff()
index 46ded62f85d4b567cbc2b47ef0ac0aaf40ae9ee3..3e79bf2129f603979f68fb604afdf0de802249fe 100644 (file)
@@ -100,8 +100,8 @@ ColorBy(testMEDReader20medDisplay, ('CELLS', 'Field'))
 # rescale color and/or opacity maps used to include current data range
 testMEDReader20medDisplay.RescaleTransferFunctionToDataRange(True)
 
-# show color bar/color legend
-testMEDReader20medDisplay.SetScalarBarVisibility(renderView1, True)
+# do not show color bar/color legend
+testMEDReader20medDisplay.SetScalarBarVisibility(renderView1, False)
 
 # get color transfer function/color map for 'Field'
 fieldLUT = GetColorTransferFunction('Field')
index 1d9aa0b79b447fbb0ea224c003551d93b0115b19..e58d2f780bd4f59eb9f72658bec81aec285e2f02 100644 (file)
@@ -67,8 +67,8 @@ renderView1.CameraViewUp = [1.0, 1.0, 0.0]
 # set scalar coloring
 ColorBy(testTotomedDisplay, ('FIELD', 'vtkBlockColors'))
 
-# show color bar/color legend
-testTotomedDisplay.SetScalarBarVisibility(renderView1, True)
+# hide color bar/color legend
+testTotomedDisplay.SetScalarBarVisibility(renderView1, False)
 
 # get color transfer function/color map for 'vtkBlockColors'
 vtkBlockColorsLUT = GetColorTransferFunction('vtkBlockColors')
@@ -135,8 +135,8 @@ glyph1Display.ColorArrayName = ['POINTS', 'MyField']
 glyph1Display.LookupTable = myFieldLUT
 glyph1Display.GlyphType = 'Arrow'
 
-# show color bar/color legend
-glyph1Display.SetScalarBarVisibility(renderView1, True)
+# hide color bar/color legend
+glyph1Display.SetScalarBarVisibility(renderView1, False)
 
 #### saving camera placements for all active views