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

On Thu, Aug 13, 2009 at 1:45 PM, Gael Varoquaux <
gael.varoqu...@normalesup.org> wrote:

> On Tue, Aug 11, 2009 at 07:53:29PM -0400, Jack Sankey wrote:
> >    Sorry for spamming, but I have another addition to
> >    BlockingMouseInput.add_click, that fixes the problem of the graphics
> >    jumping around while ginputting. This makes it much easier to zoom in
> on
> >    an imshow() plot and click a bunch of points, for example (it used to
> zoom
> >    all the way out!):
>
> Hey Jack,
>
> If you cannot send an 'svn diff' of your changes, would you mind sending
> the modified files all together? It is hard to review changes when
> gathering them from various mails: so easy to forget a change.
>
> Cheers,
>
> Gaƫl
>
------------------------------------------------------------------------------
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

Reply via email to