latex_script_for_legend

Hi Everyone,
Could someone please help me how to write a latex notation for the legend, I believe I wrote it correctly but the outcome isn’t as expected. (Paraview 5.9.1)

Please advise.

Thanks and regards,
Aakash

$N/mm^2$

should the the trick

Unfortunately, it is still strange :frowning:

Working perfectly here.
Which OS are you using ?

Please try with the last binary release from: https://www.paraview.org/download/

Windows 10 64 bit!

Working perfectly on Windows here, are you using the binary release ?

This is the one that I am using! Do you recommend using anything else ?

This seems correct, no idea why this is not working for you.

Please try the following:

  • Open ParaView
  • Source → Wavelet, Apply
  • Color by RTData, Surface representation
  • Edit Color Map, Edit Color Legend
  • Component Name: $N/mm^2$ , Apply

Here it is!

But i’m not exactly sure which one out of the two i had installed; would that matter ?

It should not matter.

I just tried with the exact same version as yours and it is still working great. You may want to try on another computer.

I will give an attempt. Thank you so much for attening my queries :slight_smile:

With regards,
Aakash

I’m running into a similar issue (if not the same). The HPC cluster was updated from RHEL 7 to RHEL 9, and now ParaView is not able to render LaTeX:

I’m using ParaView-5.10.0-RC1-egl-MPI-Linux-Python3.9-x86_64 for the server and ParaView-5.10.0-RC1-MPI-Linux-Python3.9-x86_64 for the client.

@mwestphal, is it possibly that I need to install LaTeX fonts at the system level?

Please try with ParaView 5.12 or 5.13.0-RC1

I also have the exact same problem, running on RHEL9 on a HPC cluster. It is version 5.13.2. I did the steps @mwestphal suggested:

Below is the info from the About window:

Client Information:
Version: 5.13.2
VTK Version: 9.3.20240617
Qt Version: 6.7.2
vtkIdType size: 64bits
Embedded Python: On
Python Library Path: /sw/arch/RHEL9/EB_production/2024/software/Python/3.12.3-GCCcore-13.3.0/lib/python3.12
Python Library Version: 3.12.3 (main, Sep 4 2024, 14:03:27) [GCC 13.3.0]
Python Numpy Support: On
Python Numpy Path: /sw/arch/RHEL9/EB_production/2024/software/SciPy-bundle/2024.05-gfbf-2024a/lib/python3.12/site-packages/numpy
Python Numpy Version: 1.26.4
Python Matplotlib Support: Off
Python Testing: Off
MPI Enabled: On
Disable Registry: Off
Test Directory:
Data Directory:
SMP Backend: Sequential
SMP Max Number of Threads: 1
OpenGL Vendor: Mesa
OpenGL Version: 4.5 (Core Profile) Mesa 24.1.3
OpenGL Renderer: llvmpipe (LLVM 18.1.8, 256 bits)
Accelerated filters overrides available: No

Connection Information:
Remote Connection: No

Is there anything I can do on my end to fix this, or should I contact the HPC admin?

This is working with our binary release:

should I contact the HPC admin?

Yes

1 Like

I got the answer from the admin of the HPC system: in the ParaView installation, matplotlib was not included and therefore the LaTeX symbols could not be properly rendered. After loading a matplotlib module, it all works. You can check this by opening pvpython and trying to import matplotlib. If a ModuleNotFound exception occurs, you will not be able to render LaTeX-like annotations.

1 Like