Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version
sage: C = EllipticCurve([0,0,0,-2,0]).plot(xmin=-4, xmax=4, ymin=-3, ymax=3)
sage: print C

Graphics object consisting of 2 graphics primitives

I suppose the legend label entry shows up twice because there are two graphics primitives. You can split the plot and set the legend_label option only once.

sage: p= plot(EllipticCurve([0,0,0,-2,0]), gridlines='true', color=hue(0.2),xmin=-4, xmax=0, ymin=-3, ymax=3, legend_label='$y^2=x^3-2x$')
sage: p+=plot(EllipticCurve([0,0,0,-2,0]), gridlines='true', color=hue(0.2),xmin=1, xmax=4, ymin=-3, ymax=3) 
sage: p.set_legend_options(shadow=False, loc=2)
sage: show(p)