Re: [Matplotlib-users] getting the min and max values of an axis for plotting

2008-05-13 Thread Fabrice Silva
Le lundi 12 mai 2008 à 11:08 +0200, Johann Cohen-Tanugi a écrit : > hello, > I have a function, which I am plotting. I want to add a line positioned > at, say, the mean of the function, so I want to do plot([x,x],[y0,y1]). > In order to get y0, and y1, my brute force trial and error browsing of >

Re: [Matplotlib-users] getting the min and max values of an axis for plotting

2008-05-12 Thread Johann Cohen-Tanugi
learn and survive... :) thanks Jouni and Christopher! Johann Jouni K. Seppänen wrote: > Johann Cohen-Tanugi > <[EMAIL PROTECTED]> writes: > > >> I have a function, which I am plotting. I want to add a line positioned >> at, say, the mean of the function, so I want to do plot([x,x],[y0,y1]). >

Re: [Matplotlib-users] getting the min and max values of an axis for plotting

2008-05-12 Thread Jouni K . Seppänen
Johann Cohen-Tanugi <[EMAIL PROTECTED]> writes: > I have a function, which I am plotting. I want to add a line positioned > at, say, the mean of the function, so I want to do plot([x,x],[y0,y1]). Try axvline(x). -- Jouni K. Seppänen http://www.iki.fi/jks -

Re: [Matplotlib-users] getting the min and max values of an axis for plotting

2008-05-12 Thread Christopher Brown
Hi Johann, try: a,b = ylim() > I have a function, which I am plotting. I want to add a line positioned > at, say, the mean of the function, so I want to do plot([x,x],[y0,y1]). > In order to get y0, and y1, my brute force trial and error browsing of > the API lead me to : > y0=gca().yaxis.get_m