Plots font rotation

I’m trying to rotate the xtick labels using Plots.jl
I have tried

fo = font(10, "Courier")
fo.rotation = 90
plot(randn(10), xtickfont=fo) # Does nothing

plot(randn(10), rotation = 90) # Rotates also ytick labels which I do not want.

Any idea how to rotate only xtickfont?

2 Likes

It seems the keyword argument xrotation = 90 does the trick. This keyword does not seem to appear on the attributes page Overview · Plots

14 Likes