Jules, > > ff = P.Figure(figsize=(5,4), dpi=100) > ss = P.subplot(222) > pp = ss.plot(x,y,'.-') > > # some program resets x,y limits > P.show() > #-----
> Is there any way to > - find the axes objects that count "ff" as their parent? The `figure` associated with a subplot object `ss` is `ss.figure` The list of axes objects associated with a figure `ff` is ff.axes. So, you should be able to access the subplots as ss.figure.axes > - access the x,y points as "children" of the axes object ss? Try something like pp.get_xdata(), pp.get_ydata() where pp is the output of ss.plot IMHO, it'd be easier to go: ff = P.figure() ss = ff.add_subplot(222) pp = ss.plot(x,y,'.-') You can check that id(ff.axes[0])==id(ss) Now, if you have several subplots in the same figure, with one line per subplot, you should consider creating a list where you'd store the output of subplot.plot. That way, you'd just have to parse the list to recvoer the xdata and ydata For example ff = P.figure() plotlines = [] ss = ff.add_subplot(222) plotlines.append(ss.plot(x,y)) Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users