First time here? Check out the FAQ!

Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

answered 14 years ago

Jason Grout gravatar image

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.

click to hide/show revision 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