From 65d6551ff7c8568a53a00d2daaf001a5551e0cc8 Mon Sep 17 00:00:00 2001 From: Mark Olesen <Mark.Olesen@esi-group.com> Date: Thu, 30 May 2019 12:02:56 +0200 Subject: [PATCH] BUG: scalarBar range ignored in runTimePostProcessing - was missing range setting for the colour lookup table --- .../graphics/runTimePostProcessing/fieldVisualisationBase.C | 1 + 1 file changed, 1 insertion(+) diff --git a/src/functionObjects/graphics/runTimePostProcessing/fieldVisualisationBase.C b/src/functionObjects/graphics/runTimePostProcessing/fieldVisualisationBase.C index 7d76795a1e..c6083a1c43 100644 --- a/src/functionObjects/graphics/runTimePostProcessing/fieldVisualisationBase.C +++ b/src/functionObjects/graphics/runTimePostProcessing/fieldVisualisationBase.C @@ -270,6 +270,7 @@ setField auto lut = vtkSmartPointer<vtkLookupTable>::New(); setColourMap(lut); lut->SetVectorMode(vtkScalarsToColors::MAGNITUDE); + lut->SetTableRange(range_.first(), range_.second()); // Configure the mapper const char* fieldName = colourFieldName.c_str(); -- GitLab