From: Mathieu Westphal Date: Wed, 3 May 2017 13:20:53 +0000 (+0200) Subject: ScalarBar Update X-Git-Tag: Before_multi_study_removal_06072017~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0fe0ec78fe279cd9752128f2dcfe4c70cab898b7;p=modules%2Fparavis.git ScalarBar Update --- diff --git a/src/Plugins/MEDReader/Test/Baselines/testMEDReader15.png b/src/Plugins/MEDReader/Test/Baselines/testMEDReader15.png index 7e78fd13..4af9e7ea 100644 Binary files a/src/Plugins/MEDReader/Test/Baselines/testMEDReader15.png and b/src/Plugins/MEDReader/Test/Baselines/testMEDReader15.png differ diff --git a/src/Plugins/MEDReader/Test/Baselines/testMEDReader20.png b/src/Plugins/MEDReader/Test/Baselines/testMEDReader20.png index f84b3a27..71cbf867 100644 Binary files a/src/Plugins/MEDReader/Test/Baselines/testMEDReader20.png and b/src/Plugins/MEDReader/Test/Baselines/testMEDReader20.png differ diff --git a/src/Plugins/MEDReader/Test/Baselines/testMEDReader21.png b/src/Plugins/MEDReader/Test/Baselines/testMEDReader21.png index bd87d105..6421dbc3 100644 Binary files a/src/Plugins/MEDReader/Test/Baselines/testMEDReader21.png and b/src/Plugins/MEDReader/Test/Baselines/testMEDReader21.png differ diff --git a/src/Plugins/MEDReader/Test/testMEDReader15.py b/src/Plugins/MEDReader/Test/testMEDReader15.py index a68d7010..a88dc9df 100644 --- a/src/Plugins/MEDReader/Test/testMEDReader15.py +++ b/src/Plugins/MEDReader/Test/testMEDReader15.py @@ -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() diff --git a/src/Plugins/MEDReader/Test/testMEDReader20.py b/src/Plugins/MEDReader/Test/testMEDReader20.py index 46ded62f..3e79bf21 100644 --- a/src/Plugins/MEDReader/Test/testMEDReader20.py +++ b/src/Plugins/MEDReader/Test/testMEDReader20.py @@ -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') diff --git a/src/Plugins/MEDReader/Test/testMEDReader21.py b/src/Plugins/MEDReader/Test/testMEDReader21.py index 1d9aa0b7..e58d2f78 100644 --- a/src/Plugins/MEDReader/Test/testMEDReader21.py +++ b/src/Plugins/MEDReader/Test/testMEDReader21.py @@ -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