[SciPy-user] plot vertical lines
Mon Jul 13 11:41:28 CDT 2009
Thanks it worked. I realised my error.
If I may ask, is there a way to put the
pairs of points that make a vertical line
into a list and then plot them so you have
a number of vertical lines without having
to list them separately?
H. A. Welbeck.
From: Angus McMorland <firstname.lastname@example.org>
To: SciPy Users List <email@example.com>
Sent: Monday, July 13, 2009 4:49:00 PM
Subject: Re: [SciPy-user] plot vertical lines
2009/7/13 Afi Welbeck <firstname.lastname@example.org>:
> Thanks it worked.
> But I observed that for the values I gave you,
> you altered them a bit before it plotted it just
> they way I expected. Is there some formula
> for this sort of plot?
I take your question as asking what the convention is for the
co-ordinate listing in the plot command (?). As I tried to indicate
with the variable names, the x-values and y-values are listed
separately, and multiple lines can be listed sequentially, as in
line0_x, line0_y, line1_x, line1_y... so the first variable is the x
values of the first line, the second is the corresponding y values of
the first line and then the same for the second line. If you're using
ipython (highly recommended), then you could find this sort of
information by typing:
In : ax.plot?
In : plt.plot?
which will bring up the docstring for the associated function.
Post-doctoral research fellow
Neurobiology, University of Pittsburgh
SciPy-user mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the SciPy-user