How do you move the ylabel away from the yaxis? Changing the margins doesn't help

Here’s my sample:

using Plots
using Plots.PlotMeasures

fo = font(18)

gr(titlefont=fo, guidefont=fo, tickfont=fo, legendfont=fo, show = true, size=(700,200))

    plot([0.01,0.02,0.03,0.04],label = L"\sigma_E")
    ,xlabel = "Timestep"
    ,left_margin = 50px
    ,ylabel = "test"

How can I fix this collision with the label? Moving the margin just shifts the whole problem to the right…

1 Like

I am having the exact same problem and have not found a solution yet. If I get the right size, sometimes it is ok, but this is very time consuming and ineffective. I hope someone has an answer. I use GR.