X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPlugins%2FMEDReader%2FTest%2FtestMEDReader15.py;h=b8c8ec0b9fe89523e7ada3b51376f2e816de5c1d;hb=94cbfad1aa9258373e9eba509a607e87e78dfb7d;hp=b06e440052d99236ac5d43d3508cdfdfc19b4d75;hpb=30e5ff6331a07f058b69b87f91a97e875a554088;p=modules%2Fparavis.git diff --git a/src/Plugins/MEDReader/Test/testMEDReader15.py b/src/Plugins/MEDReader/Test/testMEDReader15.py index b06e4400..b8c8ec0b 100644 --- a/src/Plugins/MEDReader/Test/testMEDReader15.py +++ b/src/Plugins/MEDReader/Test/testMEDReader15.py @@ -1,5 +1,5 @@ # -*- coding: iso-8859-1 -*- -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D +# Copyright (C) 2007-2017 CEA/DEN, EDF R&D # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -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() @@ -87,5 +85,5 @@ baseline_file = os.path.join(baselinePath, "testMEDReader15.png") import vtk.test.Testing vtk.test.Testing.VTK_TEMP_DIR = vtk.util.misc.vtkGetTempDir() vtk.test.Testing.compareImage(GetActiveView().GetRenderWindow(), baseline_file, - threshold=25) + threshold=1) vtk.test.Testing.interact()