Unexpected spacing in LaTeX plot label

It works fine with Plots.jl’s pgfplotsx() backend:

using LaTeXStrings, Plots; pgfplotsx()

plot([1,2,3], label=L"||x-y||^2")

2 Likes