Computer modern font in every element of plot (PyPlot)

With the GR backend you can get that with:

julia> using Plots, LaTeXStrings

julia> default(fontfamily="Computer Modern",framestyle=:box)

julia> plot(x, y, color="red", linewidth=2.0, linestyle=:dash, label=L"y", title=L"\sin(3x + 4\cos(2x))", xlabel=L"x", ylabel="y")

see: Nice fonts with Plots, GR and LaTeXStrings

1 Like