Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

No legend when plotting list of points

When I plot points using Sage 4.6 the legend is not drawn.

Running this in notebook:

pts = [point((i, gauss(0,1)),) for i in range(100)]
plot(pts, legend_label='My points').show() #No legend
plot(cos(x), legend_label='cos(x)').show() #This works!

The cos(x) plot works, but not for points, how's that?

Is is a bug, or is it some other library than matplotlib used when plotting points?