# Latex in 3D scatter figure and axis titles

**URL:** <https://community.plotly.com/t/latex-in-3d-scatter-figure-and-axis-titles/85862>\
**Category:** 📊 Plotly Python\
**Created:** [July 16, 2024, 1:54pm UTC](https://community.plotly.com/t/latex-in-3d-scatter-figure-and-axis-titles/85862 "2024-07-16T13:54:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![PVS1M](https://avatars.discourse-cdn.com/v4/letter/p/ee59a6/32.png) [@PVS1M](https://community.plotly.com/u/PVS1M)\
**Post date:** [July 16, 2024, 1:54pm UTC](https://community.plotly.com/t/latex-in-3d-scatter-figure-and-axis-titles/85862/1 "2024-07-16T13:54:32Z")

</div>

Hello, I do have a problem since my code does not allow to render Latex formatting:

```auto
fig.update_layout(
    scene=dict(
        xaxis_title=r'X AXIS TITLE (cm$^2$)',
        yaxis_title=r'Y AXIS TITLE (cm$^2$)',
        zaxis_title=r'Z AXIS TITLE (cm$^2$)'
    ),
    width=700,
    margin=dict(r=20, b=10, l=10)
)

```

---

<div class="post-metadata">

**Author:** ![empet](https://avatars.discourse-cdn.com/v4/letter/e/977dab/32.png) [@empet](https://community.plotly.com/u/empet)\
**Post date:** [July 16, 2024, 8:11pm UTC](https://community.plotly.com/t/latex-in-3d-scatter-figure-and-axis-titles/85862/2 "2024-07-16T20:11:28Z")

</div>

@PVS1M LaTeX has never worked for axis title in 3d. An alternative for your particular example is to use the html tag, sup:

```auto
fig.update_layout(
    scene=dict(
        xaxis_title='cm<sup>2</sup>',
        yaxis_title='cm<sup>2</sup>',
        zaxis_title='cm<sup>2</sup>'
    ))

```
