Hello!
I have been trying to get some LaTeX into my labels and this snippet from the docs has not worked in vscode’s julia notebook nor in the REPL.
I dug around and found some complicated workarounds that were limited to the html plots, but since I would like to save them as svg
this wouldn’t help me that much.
If you want a MWE, doing the following
using Plots, LaTeXStrings
p = plot(rand(10),label = "test", )
p = xlabel!("\$\\alpha \\, F_\\mathrm{test}\$")
p = ylabel!(L"\Gamma^2")
produces this plot (using the GR backend):
While this:
using Plots, LaTeXStrings
plotlyjs()
p = plot(rand(10),label = "test", )
p = xlabel!("\$\\alpha \\, F_\\mathrm{test}\$")
p = ylabel!(L"\Gamma^2")
doesn’t render LaTeX properly:
If anyone has found a workaround I would be very grateful.
Cheers!