Issue with Plots & LaTeX

Hi, I have been using the tips given here for my Plots for quite a long time, so first let me thank @lmiq. Recently, though, I have been facing problems with LaTeX strings in my labels. In particular, it seems that LaTeX strings do not understand spaces between each word. MWE:

using Plots, LaTeXStrings
default(fontfamily=“Computer Modern”, linewidth=2, framestyle=:box, label=nothing, grid=false)
x = rand(10)
y = rand(10)
plot(x[1:10], y)
xlabel!(L"\textrm{This is } \alpha")

produces the following
mwe

The problem is not coming from \textrm{} as I also face it when I remove it.
The Plot backend is gr() and package versions are Plots v1.23.5, GR v0.62.1 and LaTeXStrings v1.3.0

1 Like