Re: [Matplotlib-users] Legend problem

2008-02-07 Thread chombee
On Thu, 2008-02-07 at 10:21 -0600, Ryan May wrote: > Changing the legend call to this fixed it: > P.legend((b1[0],b2[0]),('lower','upper')) That fixed it for me too. Thanks. The thread just started by Reckoner about the same problem also has the answer: "In a nutshell, bar returns a list of recta

Re: [Matplotlib-users] Legend problem

2008-02-07 Thread Ryan May
Ryan May wrote: > chombee wrote: >> My legend shows both plots as the same colour (blue) when in fact they >> are different colours. Here's the relevant code: >> >> font = FontProperties(size='small'); >> ... >> b1 = bar(i,lowermeans,width,color='b') >> b2 = bar(i+width,uppermeans,

Re: [Matplotlib-users] Legend problem

2008-02-07 Thread Ryan May
chombee wrote: > My legend shows both plots as the same colour (blue) when in fact they > are different colours. Here's the relevant code: > > font = FontProperties(size='small'); > ... > b1 = bar(i,lowermeans,width,color='b') > b2 = bar(i+width,uppermeans,width,color='y') >

[Matplotlib-users] Legend problem

2008-02-07 Thread chombee
My legend shows both plots as the same colour (blue) when in fact they are different colours. Here's the relevant code: font = FontProperties(size='small'); ... b1 = bar(i,lowermeans,width,color='b') b2 = bar(i+width,uppermeans,width,color='y') ... legend((b1,b2

Re: [Matplotlib-users] legend for bar charts?

2008-02-07 Thread John Hunter
On Feb 7, 2008 8:21 AM, Reckoner <[EMAIL PROTECTED]> wrote: > is it possible to use matplotlib's legend() for a bar chart? I am plotting > a number of bars with different colors on the same axes and I would like to > label each color. > > legend () seems to want to label every single bar on my ba

[Matplotlib-users] legend for bar charts?

2008-02-07 Thread Reckoner
is it possible to use matplotlib's legend() for a bar chart? I am plotting a number of bars with different colors on the same axes and I would like to label each color. legend () seems to want to label every single bar on my bar chart. Thanks in advance. -

Re: [Matplotlib-users] Plot a complex sequence (newb)

2008-02-07 Thread Ryan May
Neal Becker wrote: > Newb here. I can plot a seq of float with: > > pylab.plot (s) > pylab.show() > > But if s is complex, say numpy.array(complex), it doesn't do what I want. I > think it's just showing the real part? > > I want to get 2 line graphs, one real one imag. If s is a numpy array,