如何在 Plots.jl 中旋转字体
How to rotate the font in Plots.jl
如何在 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
处提供了更多属性
如何在 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
处提供了更多属性