On Mon, Aug 17, 2009 at 11:24 AM, Jack Sankey<jack.san...@gmail.com> wrote: > Hello Gael, > Okay, I've updated the two files I modified here: > http://sites.google.com/site/jacksankey/files/matplotlib.zip?attredirects=0 > Sorry I can't figure out how to compile. I wish it was possible to have an > SVN containing also the windows binaries. Too bad we all can't just run > Linux. > Anyway, I tested the pants off this using an imshow() color plot this > morning, and it works well on windows XP/wxAgg. There are two things worth > mentioning: > - For some reason, the enter key does not generate an event for me. I've > added "escape" as another possible keyboard stop event generator. > - The backspace key causes the plot to undo a zoom. This confused me for an > hour. Use delete! > - I'm fairly certain the mouse numbers are different for windows. I can't > make the middle mouse button do anything. > If you don't wind up adding all these changes, in the very least for the > upcoming release, can you please add "escape" to the list of keys that will > exit the collection of data points? That would amount to changing one line > in key_event() from > elif key == 'enter' > to > elif key in ['escape', 'enter']: > The third point above is the reason I looked into this in the first place; I > couldn't stop collecting! :) Adding 'escape' would make ginput() functional > enough. (I also use key = event.key.lower() to be safe.) > Thanks! > -Jack
Hi Jack, I've tried to apply your code properly. Because it was not a patch, but a simple code file submission (and the original files have changed since your submission) and because I did not write the original ginput code, it was touch sledding to apply the patch. I think I got it right, but I would like people who use ginput and blocking input to give it a test drive (I did what basic tests I could, not being a power user). Thanks for the submission, JDH ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel