>>>>> "Gael" == Gael Varoquaux <[EMAIL PROTECTED]> writes:

    Gael> For those who have never used matlab, ginput is a blocking
    Gael> call that takes one optional argument n, waits for n click
    Gael> on the current figure, and returns the coordinates of those
    Gael> n clicks. I have been trying to write such a function in
    Gael> pylab and I can't find a solution.

blocking calls in pylab with gtk threading may be possible but it is
beyond my powers.  I would write this with a callback, eg create a
class that takes a callback in the constructor and calls the callback
after n clicks with a list of n coords.  blocking input calls may be
easier in tkagg.  If there is a gtk/threading guru on hand, I'd be
interested if anyone has ideas on how to do this.

JDH

-------------------------------------------------------------------------
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-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to