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_majorticklabels()[0].get_position()[1] > y1=gca().yaxis.get_majorticklabels()[-1].get_position()[1] > > .... and as I am never contented, I now ask : is it really the manner of > choice to get this information. I sense that I did not take the > straightest path to get it :) ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users