plot(..., label=None)

Hi,
I'm using code like this:
...
pylab.plot(..., label="something")
pylab.plot(..., label="something")
...
pylab.legend()

and i'd like to not include some plotted lines in legend.
I can specify it explicitly by legend(lines, labels),
but it's more convenient for me to use:
pylab.plot(..., label=None)

I made a simple change in axes.py (attached patch).
I also have some questions about legend() function, that I put
into the same patch.

Cheers,
Marcin

legendNone.diff (1.8 KB)

···

--
Marcin Wojdyr | http://www.unipress.waw.pl/~wojdyr/