Hello all

My specific question is this:

Suppose I have a figure, with an axes object, and an XY plot:

#-------
import matplotlib
import pylab as P

t = P.arange(0.0,1.0,0.02)
x = P.sin(2*P.pi*t)
y = P.exp(-t*3.)*P.cos(3*P.pi*t)

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()
#-----

(Sorry for my matlab-tainted language):

I would like to use ff.gca() to get the handle of the
active axes object (which should be ss) and then
determine the indices into the original data (x,y)
which reflect the points showing in the current
axis limits (whatever they have been set to)

Is there any way to
- find the axes objects that count "ff" as their parent?
- access the x,y points as "children" of the axes object ss?

I may be approaching my larger goal the wrong way,
but I am still interested in this question.

Thanks,
Jules


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

Reply via email to