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.
在 Gadfly 中直接绘制函数很容易:
plot([sin, cos], 0, 25)
这给了我两条不同颜色的线,在图例中自动标记为f_1和f_2:
f_1
f_2
如何更改“颜色”图例中的默认名称?
将color参数设置为标签列表:
color
plot([sin, cos], 0, 25, color=["sine", "cosine"])