2

如何为Julia 绘图包 Plots.jlxlabel或在其中旋转字体?ylabel

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

1 回答 1

3

旋转字体的关键字参数是

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/提供了更多属性

于 2020-05-21T09:36:36.003 回答