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
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,
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')
>
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
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
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.
-
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,