Is this version from the last century?
It seems it was issued on Mar 27, 2020, but Plots is already at v1.23.5.
There are many recommendations in Discourse to create new project environments and work with only the packages you need. Update failing due to version# conflict issues are then minimized. See for instance this post.
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
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
Indeed, I see the same thing now. And usually one could add ~ to force the spaces to appear, but the spacing is odd anyway (particularly the space between the capital T and the rest:
It is an issue with GR, as it occurs even without Plots:
julia> using GR, LaTeXStrings
julia> x = rand(10)
y = rand(10)
plot(x[1:10], y, xlabel=L"\textrm{This is } \alpha")