Re: [Matplotlib-users] legend() without args?

2007-07-05 Thread John Hunter
On 7/5/07, Norbert Nemec [EMAIL PROTECTED] wrote: Sorry, I notice that there may be need for an additional explanation: What I call explicit label is one that is given as kwarg to the plot command like plot(x,sin(x),label=sin(x)) This works for me in svn. I also think Norbert's idea of

Re: [Matplotlib-users] legend() without args?

2007-07-05 Thread Norbert Nemec
Sorry, I notice that there may be need for an additional explanation: What I call explicit label is one that is given as kwarg to the plot command like plot(x,sin(x),label=sin(x)) My standard use of legends is to give such an explicit label to every significant line and call legend()

Re: [Matplotlib-users] legend() without args?

2007-07-05 Thread Norbert Nemec
This is the result of a change that I committed in between 0.90.0 and 0.90.1 - sorry if it caused confusion... The idea is exactly what you observed: legend() only displays those lines that have an explicit label set. If a certain line in a figure does not have a label, I think it is rather

Re: [Matplotlib-users] legend() without args?

2007-07-05 Thread Jonathan Griffitts
In message [EMAIL PROTECTED], Norbert Nemec [EMAIL PROTECTED] wrote This is the result of a change that I committed in between 0.90.0 and 0.90.1 - sorry if it caused confusion... The idea is exactly what you observed: legend() only displays those lines that have an explicit label set. If a

[Matplotlib-users] legend() without args?

2007-07-02 Thread Jonathan Griffitts
In matplotlib 0.90.1 the behavior of legend() seems to have changed. Here's a test code fragment: --- import pylab import numpy y=numpy.arange(-10,10)**2 print y pylab.plot(y) pylab.legend() pylab.show() --- Running on python 2.5.1, matplotlib