On Tue, 16 Sep 2008, charles reid apparently wrote:
> f.legend(line1,('CO2'),loc=(0.8,0.8))
('CO2') is a string not a tuple.
('CO2',) is a tuple.
hth,
Alan Isaac
-
This SF.Net email is sponsored by the Moblin Your Move De
Thank you for the immediate and extremely helpful suggestions. Changing the
string to a tuple works great, and I did not think about using the "label"
keyword in plot. I think this will greatly simplify the plotting.
Thanks again for the "instant gratification". :)
Charles
==
The 2n
On Tue, Sep 16, 2008 at 4:09 PM, charles reid <[EMAIL PROTECTED]> wrote:
> Hi there -
>
> I'm using the latest stable pylab/matplotlib (0.98.3) via OS X 10.5.4. I am
> plotting a simple array of data, and I'm getting some strange behavior when
> I try to add a legend to the plot.
> First, the plot
Charles,
The legend functions needs a sequence-type object (list,etc) not a
tuple as the second argument. The following should work:
f.legend(line1,['CO2'],loc=(0.8,0.8))
Not sure about the cursor issue, see if the above solves the problem.
You should be able to add a nu
Hi there -
I'm using the latest stable pylab/matplotlib (0.98.3) via OS X 10.5.4. I am
plotting a simple array of data, and I'm getting some strange behavior when
I try to add a legend to the plot.
First, the plot without the legend:
f=figure(1)
title("Equilibrium Concentration vs. Equivalence R