1 | initial version |
This works and is much simpler:
sage: points([(i, gauss(0,1)) for i in range(100)], legend_label='My points',ymax=10)
(the ymax is in there to make room for the legend).
It appears when plot takes in a list of things to plot, it may not pass the legend_label argument down to each thing it is plotting.
2 | No.2 Revision |
This works and is much simpler:
sage: points([(i, gauss(0,1)) for i in range(100)], legend_label='My points',ymax=10)
(the ymax is in there to make room for the legend).
It appears when plot takes in a list of things to plot, it may not pass the legend_label argument down to each thing it is plotting.plotting. I've made this trac #10514