# -*- coding: iso-8859-1 -*-
-# Copyright (C) 2016 CEA/DEN, EDF R&D
+# Copyright (C) 2016, 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
renderView1.CameraPosition = [5.0, 0.5, 10000.0]
renderView1.CameraFocalPoint = [5.0, 0.5, 0.0]
-# set scalar coloring
-ColorBy(testMEDReader20medDisplay, ('FIELD', 'vtkBlockColors'))
-
-# show color bar/color legend
-testMEDReader20medDisplay.SetScalarBarVisibility(renderView1, True)
-
-# get color transfer function/color map for 'vtkBlockColors'
-vtkBlockColorsLUT = GetColorTransferFunction('vtkBlockColors')
-
-# get opacity transfer function/opacity map for 'vtkBlockColors'
-vtkBlockColorsPWF = GetOpacityTransferFunction('vtkBlockColors')
-
# set scalar coloring
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')
baseline_file = os.path.join(baselinePath,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)
+vtk.test.Testing.compareImage(GetActiveView().GetRenderWindow(), baseline_file, threshold=1)
vtk.test.Testing.interact()