# Plots: string interpolation in labels?

**URL:** <https://discourse.julialang.org/t/plots-string-interpolation-in-labels/10799>\
**Category:** Visualization\
**Tags:** plots, string-interpolation, latexstrings\
**Created:** [May 9, 2018, 3:25pm UTC](https://discourse.julialang.org/t/plots-string-interpolation-in-labels/10799 "2018-05-09T15:25:24Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)\
**Post date:** [January 18, 2022, 3:22pm UTC](https://discourse.julialang.org/t/plots-string-interpolation-in-labels/10799/4 "2022-01-18T15:22:35Z")

</div>

> [@stevengj](#):
>
> It won’t work with `L"..."` strings because those treat `$` as literal dollar signs, not as interpolation. But you can make an LaTeX equation with an ordinary string as long as you are willing to put `\` before dollar signs and backslashes, e.g. `"\$K_p = $(Kp[1])\$"` .

Update: for some time now, LaTeXStrings has supported Julia interpolation with `%$`, e.g. `L"K_p = %$(Kp[1])"`

---

_[View the full topic](https://discourse.julialang.org/t/plots-string-interpolation-in-labels/10799)._
