# latex\_script\_for\_legend

**URL:** https://discourse.paraview.org/t/latex-script-for-legend/8481
**Category:** ParaView Support
**Created:** [November 24, 2021, 1:02pm UTC](https://discourse.paraview.org/t/latex-script-for-legend/8481 "2021-11-24T13:02:33Z")
**Posts on this page:** 16
**Page:** 1

<div class="post-metadata">

### Author: ![Aakash](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/a/9fc348/32.png) [@Aakash](https://discourse.paraview.org/u/Aakash)
#### Post date: [November 24, 2021, 1:02pm UTC](https://discourse.paraview.org/t/latex-script-for-legend/8481/1 "2021-11-24T13:02:34Z")

</div>

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.

 ![image](https://discourse.paraview.org/uploads/default/original/2X/5/5b6381f0d1b8f057118a293a9b662f8435fbf6c4.png)

Thanks and regards,  
Aakash

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [November 24, 2021, 1:12pm UTC](https://discourse.paraview.org/t/latex-script-for-legend/8481/2 "2021-11-24T13:12:56Z")

</div>

```auto
$N/mm^2$

```

should the the trick

---

<div class="post-metadata">

### Author: ![Aakash](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/a/9fc348/32.png) [@Aakash](https://discourse.paraview.org/u/Aakash)
#### Post date: [November 24, 2021, 1:50pm UTC](https://discourse.paraview.org/t/latex-script-for-legend/8481/3 "2021-11-24T13:50:35Z")

</div>

Unfortunately, it is still strange ☹

 ![image](https://discourse.paraview.org/uploads/default/original/2X/3/30fef1def49f88adfc9972be3db73d822a04c046.png)

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [November 24, 2021, 1:53pm UTC](https://discourse.paraview.org/t/latex-script-for-legend/8481/4 "2021-11-24T13:53:55Z")

</div>

![a](https://discourse.paraview.org/uploads/default/original/2X/3/32a36a349a20c0996a36f10415bae6f8d8dc5f14.png)

Working perfectly here.  
Which OS are you using ?

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

---

<div class="post-metadata">

### Author: ![Aakash](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/a/9fc348/32.png) [@Aakash](https://discourse.paraview.org/u/Aakash)
#### Post date: [November 24, 2021, 2:40pm UTC](https://discourse.paraview.org/t/latex-script-for-legend/8481/5 "2021-11-24T14:40:53Z")

</div>

Windows 10 64 bit!

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [November 24, 2021, 2:54pm UTC](https://discourse.paraview.org/t/latex-script-for-legend/8481/6 "2021-11-24T14:54:00Z")

</div>

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

---

<div class="post-metadata">

### Author: ![Aakash](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/a/9fc348/32.png) [@Aakash](https://discourse.paraview.org/u/Aakash)
#### Post date: [November 24, 2021, 3:01pm UTC](https://discourse.paraview.org/t/latex-script-for-legend/8481/7 "2021-11-24T15:01:54Z")

</div>

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

 ![image](https://discourse.paraview.org/uploads/default/original/2X/7/7642f19a90cb5db3616941849ab72d7bac1ca488.png)

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [November 24, 2021, 3:08pm UTC](https://discourse.paraview.org/t/latex-script-for-legend/8481/8 "2021-11-24T15:08:48Z")

</div>

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

---

<div class="post-metadata">

### Author: ![Aakash](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/a/9fc348/32.png) [@Aakash](https://discourse.paraview.org/u/Aakash)
#### Post date: [November 24, 2021, 3:22pm UTC](https://discourse.paraview.org/t/latex-script-for-legend/8481/9 "2021-11-24T15:22:11Z")

</div>

Here it is!

 ![image](https://discourse.paraview.org/uploads/default/original/2X/e/e0d81fd76912c54a5acf72fffa39d7a1c6242b7b.png)

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

 ![image](https://discourse.paraview.org/uploads/default/original/2X/2/277e1e6cd2ee09c2269eba473bc0a87316d0e2f6.jpeg)

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [November 24, 2021, 3:34pm UTC](https://discourse.paraview.org/t/latex-script-for-legend/8481/10 "2021-11-24T15:34:12Z")

</div>

> [@Aakash](#):
>
> 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.

---

<div class="post-metadata">

### Author: ![Aakash](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/a/9fc348/32.png) [@Aakash](https://discourse.paraview.org/u/Aakash)
#### Post date: [November 24, 2021, 7:54pm UTC](https://discourse.paraview.org/t/latex-script-for-legend/8481/11 "2021-11-24T19:54:09Z")

</div>

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

With regards,  
Aakash

---

<div class="post-metadata">

### Author: ![EdoAlvarezR](https://discourse.paraview.org/user_avatar/discourse.paraview.org/edoalvarezr/32/8855_2.png) [@EdoAlvarezR](https://discourse.paraview.org/u/EdoAlvarezR)
#### Post date: [July 23, 2024, 7:53pm UTC](https://discourse.paraview.org/t/latex-script-for-legend/8481/12 "2024-07-23T19:53:58Z")

</div>

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:

 ![image](https://discourse.paraview.org/uploads/default/original/2X/d/d0fbef7b9c28a691b0968669d76b21eeb79ffe00.jpeg)

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?

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [August 8, 2024, 7:24am UTC](https://discourse.paraview.org/t/latex-script-for-legend/8481/13 "2024-08-08T07:24:44Z")

</div>

> [@EdoAlvarezR](#):
>
> ParaView-5.10.0

Please try with ParaView 5.12 or 5.13.0-RC1

---

<div class="post-metadata">

### Author: ![Tox](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/t/8e8cbc/32.png) [@Tox](https://discourse.paraview.org/u/Tox)
#### Post date: [August 25, 2025, 7:17am UTC](https://discourse.paraview.org/t/latex-script-for-legend/8481/14 "2025-08-25T07:17:25Z")

</div>

> [@mwestphal](#):
>
> N/mm^2

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:

 ![image](https://discourse.paraview.org/uploads/default/original/3X/e/d/ed1d8d6447db21922e7fa28c3ddbf6f3df3ea121.png)

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?

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [August 25, 2025, 8:36am UTC](https://discourse.paraview.org/t/latex-script-for-legend/8481/15 "2025-08-25T08:36:41Z")

</div>

> [@mwestphal](#):
>
> `$N/mm^2$`

This is working with our binary release:

 ![image](https://discourse.paraview.org/uploads/default/original/3X/1/6/16258355f5db35e7745f64a4324340879f82787a.png)

> should I contact the HPC admin?

Yes

---

<div class="post-metadata">

### Author: ![Tox](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/t/8e8cbc/32.png) [@Tox](https://discourse.paraview.org/u/Tox)
#### Post date: [August 25, 2025, 1:27pm UTC](https://discourse.paraview.org/t/latex-script-for-legend/8481/16 "2025-08-25T13:27:45Z")

</div>

> [@mwestphal](#):
>
> N/mm^2

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.
