On Fri, Jul 18, 2008 at 09:17:02PM +0200, David M. Kaplan wrote: > For ginput, there are a number of ways that an impartial list could be > returned and this is often a desired outcome (for example, I often > decide after the fact that I want fewer points than I initially > thought).
Can't you use ginput(0) for these cases? It doesn't work on Mac with no middle mouse button to terminate the sequence, but that is a separate issue. > Perhaps as a compromise we could set the default timeout to > -1 so the user needs to actually choose a timeout (presumably indicating > he/she accepts the consequences). But allowing the user to manually > decide to select fewer points using the second mouse button has proved > quite useful to me and the user would still need to test in this case. > We could warn if not enough points are returned, but an error seems too > much to me. The cases I'm thinking about (e.g., select fit range) have a specific number of points. Other cases (e.g., select shape outline) have an indefinite number of points. I can't think of case off hand where I would want e.g., six or fewer points. That said, I can always wrap the function in my own interface for my scripts. - Paul ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel