From 058c7998d5894aea1a8b3a49520247df44c18f09 Mon Sep 17 00:00:00 2001 From: Gilles DAVID Date: Wed, 7 Jun 2017 08:37:04 +0200 Subject: [PATCH] Paraview 5.4: Fix Python error Tests still fail due to image differences. --- src/PV_SWIG/presentations.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/PV_SWIG/presentations.py b/src/PV_SWIG/presentations.py index 3c05d6ec..91c7721e 100644 --- a/src/PV_SWIG/presentations.py +++ b/src/PV_SWIG/presentations.py @@ -904,7 +904,8 @@ def add_scalar_bar(field_name, nb_components, scalar_bar.LookupTable = lookup_table # Set default properties same as in Post-Pro - scalar_bar.NumberOfLabels = 5 + # NumberOfLabels removed (see commit ff8f9cb6 in PARAVIEW) + # scalar_bar.NumberOfLabels = 5 scalar_bar.AutomaticLabelFormat = 0 scalar_bar.LabelFormat = '%-#6.6g' # Title -- 2.39.2