Labeling functions at the Gadfly site

In Gadfly, laying functions can be easily done:

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

This gives my two multi-colored lines, automatically marked in the legend as something like f_1 and f_2 :

enter image description here

How to change the default names in the legend "Color"?

+5
source share
1 answer

Set the color argument to the list of labels:

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

Update Tags

+4
source

All Articles