Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Believe it or not, there is a very subtle difference between linestyle='--' and the default, but you are right that it's not really visible and I've opened ticket 18543 for this.

Believe it or not, there is a very subtle difference between linestyle='--' and the default, but you are right that it's not really visible and I've opened ticket 18543 for this.

Edit: as a workaround, you can do

sage: P = plot(x,(x,1,100),linestyle='--', legend_label='foo')
sage: P.set_legend_options(handlelength=2)
sage: P

and perhaps that will be nicer anyway. See here for the full set of legend options.