Gadfly 图中的标记函数

Labelling functions in Gadfly plot

在 Gadfly 中直接绘制函数很容易:

plot([sin, cos], 0, 25)

这给出了我的两条不同颜色的线,在图例中自动标记为 f_1f_2:

如何更改 "Color" 图例中的默认名称?

color 参数设置为标签列表:

plot([sin, cos], 0, 25, color=["sine", "cosine"])