Color bars and text elements differ between the Paraview GUI and python output. This is because both have different screen/render/canvas dimensions, and font sizes are not similarly scaled if you change your render dimensions. So what you need to do is set your renderView.ViewSize, layout.SetSize and SaveScreenShot(… ImageResolution) all to the same size and test your view in the GUI by using View->Preview. Generally, I like to set the size to 1920x1080px, so you could use the View->Preview->1920x1080(FHD) setting. If you do this consistently, all text elements and color bars should be identical between the GUI and pvbatch.
1 Like