# Plots + PlotlyJS + LaTeX

**URL:** https://discourse.julialang.org/t/plots-plotlyjs-latex/38250
**Category:** General Usage
**Tags:** question, plotting
**Created:** [April 26, 2020, 5:45pm UTC](https://discourse.julialang.org/t/plots-plotlyjs-latex/38250 "2020-04-26T17:45:10Z")
**Posts on this page:** 1
**Showing post:** 14

<div class="post-metadata">

### Author: ![Freya\_the\_Goddess](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/freya_the_goddess/32/36835_2.png) [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)
#### Post date: [July 25, 2022, 5:05am UTC](https://discourse.julialang.org/t/plots-plotlyjs-latex/38250/14 "2022-07-25T05:05:08Z")

</div>

I try your code, it works if I use `"cdn"`, but not if only using `""`

```julia
using LaTeXStrings, Plots
plotlyjs()

plot(1:4, [[1,4,9,16]*10000, [0.5, 2, 4.5, 8]],
           labels = [L"\alpha_{1c} = 352 \pm 11 \text{ km s}^{-1}";
                     L"\beta_{1c} = 25 \pm 11 \text{ km s}^{-1}"] |> permutedims,
           xlabel = L"\sqrt{(n_\text{c}(t|{T_\text{early}}))}",
           ylabel = L"d, r \text{ (solar radius)}",
           yformatter = :plain,
           extra_plot_kwargs = KW(
               :include_mathjax => "cdn",
               :yaxis => KW(:automargin => true),
               :xaxis => KW(:domain => "auto")
               ),
       )
savefig("test.html")

```

 ![Capture d’écran_2022-07-25_12-06-49](https://global.discourse-cdn.com/julialang/original/3X/6/4/642a701a3d6227aff408a55d77eecef20c37b3f2.png)

Thanks a Lot!

---

_[View the full topic](https://discourse.julialang.org/t/plots-plotlyjs-latex/38250)._
