getting the min and max values of an axis for plotting

Johann Cohen-Tanugi
<cohen@...1565...> 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

learn and survive... :slight_smile:

thanks Jouni and Christopher!
Johann

Jouni K. Sepp�nen wrote:

···

Johann Cohen-Tanugi
<cohen@...1565...> 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).