# Render LaTeX in plot

**URL:** <https://discourse.julialang.org/t/render-latex-in-plot/68376>\
**Category:** New to Julia\
**Tags:** plotting, latex, plots\
**Created:** [September 18, 2021, 4:26pm UTC](https://discourse.julialang.org/t/render-latex-in-plot/68376 "2021-09-18T16:26:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vinicius\_de\_lima](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/vinicius_de_lima/32/28717_2.png) [@vinicius\_de\_lima](https://discourse.julialang.org/u/vinicius_de_lima)\
**Post date:** [September 18, 2021, 4:26pm UTC](https://discourse.julialang.org/t/render-latex-in-plot/68376/1 "2021-09-18T16:26:45Z")

</div>

I’m trying to render LaTex in the following plot:

```julia
    using LaTeXStrings
    using Plots

    plotly()
    plot(100 * ω_compac,ρ_seco,
    title = "Curva de Compactação",
    xlabel = "ω(%)",
    ylabel = L"\rho_{seco}(kg/m³)",
    label = false,
    markershape = :circle)

```

But the output is  
 ![plot](https://global.discourse-cdn.com/julialang/original/3X/6/3/63a23b664fb558b4db459ec67044a3562bdcfb8a.png)

There is a way to this in this backend or I need to try another?

---

<div class="post-metadata">

**Author:** ![Wen-Wei\_Tseng](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wen-wei_tseng/32/28839_2.png) [@Wen-Wei\_Tseng](https://discourse.julialang.org/u/Wen-Wei_Tseng)\
**Post date:** [September 18, 2021, 4:45pm UTC](https://discourse.julialang.org/t/render-latex-in-plot/68376/2 "2021-09-18T16:45:10Z")

</div>

There was a similar question: [Latex typesetting in Plots with plotly backend? - #3 by hhaensel](https://discourse.julialang.org/t/latex-typesetting-in-plots-with-plotly-backend/35545/3)

AFAIK, `gr()` and `pyplot()` backends support LaTeXStrings better

- [gr example](https://goropikari.github.io/PlotsGallery.jl/src/latex1.html)
- [pyplot example](https://goropikari.github.io/PlotsGallery.jl/src/latex2.html)
