[SciPy-user] Matplotlib/pylab help

Ryan Krauss ryanlists@gmail....
Fri Apr 27 09:12:44 CDT 2007


I think it is as simple as specifying your ylim to be [ymax,ymin]:

t=arange(0,0.2,0.001)
y=sin(2*10*pi*t)
plot(t,y)
ylim([1.0,-1.0])

On 4/27/07, Brandon Nuttall <bnuttall@uky.edu> wrote:
> Folks,
>
> I have a simple(?) question. I need to plot some data with the y axis
> inverted. That is, the minimum y is at the top of the y axis (top left
> corner of figure) and the maximum y in at the bottom of the y axis (bottom
> left corner of figure) where it intersects the x axis. I'm plotting
> depth-related data xy data. I've browsed the FAQs, docstrings, Matplotlib
> User's Guide and haven't found out how to do this. I'm certain I'm
> overlooking some argument or method somewhere.
>
> Thanks for any assistance.
>
> Brandon
>
>
>
> Brandon C. Nuttall
>
> BNUTTALL@UKY.EDU                         Kentucky Geological Survey
> (859) 257-5500                                     University of Kentucky
> (859) 257-1147 (fax)                              228 Mining & Mineral
> Resources Bldg
> http://www.uky.edu/KGS/home.htm       Lexington, Kentucky 40506-0107
>
> _______________________________________________
> SciPy-user mailing list
> SciPy-user@scipy.org
> http://projects.scipy.org/mailman/listinfo/scipy-user
>


More information about the SciPy-user mailing list