Christopher Barker wrote:
> Jeff Whitaker wrote:
>
>> Chris:  In the pylab interface, figure() returns a figure instance 
>> and plot(x,y) returns a list of Line2d instances.
>
> yes, but it's the axis instance that you are most likely to need!
>
> - Chris
>
>
Chris:  Never noticed this before, but apparently the parent axes 
instance is attached to the Line2d instance:

 >>> from pylab import *
 >>> l = plot([1,2,3])
 >>> l[0].axes
<matplotlib.axes.Subplot instance at 0x3240e90>
 >>>


-Jeff

-- 
Jeffrey S. Whitaker         Phone  : (303)497-6313
Meteorologist               FAX    : (303)497-6449
NOAA/OAR/PSD  R/PSD1        Email  : [EMAIL PROTECTED]
325 Broadway                Office : Skaggs Research Cntr 1D-124
Boulder, CO, USA 80303-3328 Web    : http://tinyurl.com/5telg


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to