如何在 Julia 绘图包 Plots.jl 中旋转xlabel
或ylabel
的字体?
fo = font(10, "Courier")
fo.rotation = 90
plot(randn(10), xtickfont=fo) # Does nothing
用于旋转字体的关键字参数是
plot(..., xrotation = 45) # For 45 degree rotation
plot(..., yrotation = 45)
plot(..., rotation = 45) # Rotates both x and y fonts
更多属性在 http://docs.juliaplots.org/latest/attributes/