如何在 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 中旋转字体,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61931507/