To add to Stan's reply, you can add
pylab.grid(True, linestyle='-', linewidth=.5, alpha=.3)
in order to have a light grey grid display at the background.
On Sep 25, 7:49 am, Jason Grout <[EMAIL PROTECTED]> wrote:
> Maike wrote:
> > Hi Jason,
>
> > Thanks for the help! Which parameter is it that
Maike wrote:
> Hi Jason,
>
> Thanks for the help! Which parameter is it that tells the axis to be
> on the left? My example is:
>
> rsa = line([(2000,952),(2005,1149),(2010,1369),(2015,1613),(2020,1881),
> (2025,2174),(2030,2493),(2035,2840),(2040,3214)],rgbcolor="green")
> ecc = line([(2000,132
Hi Jason,
Thanks for the help! Which parameter is it that tells the axis to be
on the left? My example is:
rsa = line([(2000,952),(2005,1149),(2010,1369),(2015,1613),(2020,1881),
(2025,2174),(2030,2493),(2035,2840),(2040,3214)],rgbcolor="green")
ecc = line([(2000,132),(2005,139),(2010,146),(2015
Jason Grout wrote:
> Maike wrote:
>> Hello,
>>
>> I've tried looking at all the plot options in the documentation, but I
>> can't find how to do the following. Maybe someone can help...
>>
>> * control over the scaling of the y-axis. I can choose xmin and xmax,
>> but the range of the y-axis is al
Maike wrote:
> Hello,
>
> I've tried looking at all the plot options in the documentation, but I
> can't find how to do the following. Maybe someone can help...
>
> * control over the scaling of the y-axis. I can choose xmin and xmax,
> but the range of the y-axis is always chosen automatically.
Hi Maike,
I found that the use of pylab allows a lot more control over your
plots. Example:
import pylab
x1 = srange(0,1.1,0.01)
d1 = [2*x+x^2 for x in x1]
d2 = [3*x+0.9*x^2 for x in x1]
title='Test plot'
pylab.clf() # clear the figure first
pylab.figure(1)
# plot some data and add a legend
pyla