Can I change axis position in Plots

I see. A quick (and dirty) way would be to just cheat by manually specifying the tick labels, like this:

plot(
    f, 0, 5,
    legend=false, 
    framestyle=:origin,
    yticks=(-3:3, ["$i" for i in 0:6])
)

test

4 Likes