Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何为Julia 绘图包 Plots.jlxlabel或在其中旋转字体?ylabel
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/提供了更多属性