Vertical color legends with horizontal title clash with the Use Above Range Color
Brief Description
As shown in the image below, when using a vertical colorbar with a horizontal title, if the Use Above Color Range
option results in the title overlapping the colorbar:
ParaView version and operating system
Client Information:
Version: 5.12.0
VTK Version: 9.3.20231030
Qt Version: 5.15.2
vtkIdType size: 64bits
Embedded Python: On
Python Library Path: C:\Program Files\ParaView 5.12.0\bin\lib
Python Library Version: 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)]
Python Numpy Support: On
Python Numpy Path: C:\Program Files\ParaView 5.12.0\bin\Lib\site-packages\numpy
Python Numpy Version: 1.25.2
Python Matplotlib Support: On
Python Matplotlib Path: C:\Program Files\ParaView 5.12.0\bin\Lib\site-packages\matplotlib
Python Matplotlib Version: 3.7.2
Python Testing: Off
MPI Enabled: On
ParaView Build ID: superbuild 2891f7bc1038636e1e1abd941be85832dfd65d01 (!1178)
Disable Registry: Off
Test Directory:
Data Directory:
SMP Backend: TBB
SMP Max Number of Threads: 8
OpenGL Vendor: NVIDIA Corporation
OpenGL Version: 3.2.0 NVIDIA 551.86
OpenGL Renderer: NVIDIA GeForce RTX 2060 SUPER/PCIe/SSE2
Accelerated filters overrides available: No
Connection Information:
Remote Connection: No
Configuration (built-in server, remote server, pvbatch)
Local / fat-client
Observed behavior
Certain colorbar configurations result in title overlapping with Use Above Range Color
option
Expected behavior
Title should never overlap with colorbar, with or without Use Above Range Color
option
Steps to reproduce
- Add a
Sphere
source - Set
Theta Resolution
to 64 - Set
Phi Resolution
to 32 - Color by
Normals - X
- Click the icon for the
Color Map Editor
- Discretize the colormap into 12 colors
- Check the box for
Use Below Range Color
- Check the box for
Use Above Range Color
- Click the icon for the
Edit Color Legend Properties
- Set the
Title Justification
toLeft
- Check the box for
Horizontal Title
- Select
Title Font Properties
font to beCourier
- Set
Title Font Properties
font size to be 24 - Select
Text/Annotation Font Properties
font to beCourier
- Set
Text/Annotation Font Properties
font size to be 24 - Set
Appearance - Color Bar Thickness
to be 64 - Set
Appearance - Color Bar Length
to be 0.75 - Check the box for
Use Custom Labels
- Click the
OK
button
Dataset that shows the problem
Here's the sphere source as a PVD file: sphere.pvd
Detailed description with screenshots as appropriate
I quite often have the issue that when I use colorbars with the Use Color Above Range
regions, which I often use to show "failure regions" in a stress analysis where the stress exceeds a failure-criteria like von Mises yield stress, that the title will overlap with the extended colorbar region. Here's an example of what I would see:
It seems like this occurs with various configurations of the colorbar's thickness, height, and title font sizes -- it's often valuable to change these from the defaults in order to make legible figures for customer reports or publications. Ideally the title shouldn't ever overlap with the extended regions of the colorbar, regardless of the colorbar's settings.