Re: [Matplotlib-users] Event handling... again

2012-07-04 Thread Tony Yu
On Wed, Jul 4, 2012 at 11:11 PM, Jorge Scandaliaris wrote: > > De: Tony Yu > > > > > >Just a wild guess: Any chance you're using some GUI-toolkit-specific > functionality? > > > > > > > Can you elaborate please? I use the GTKAgg backend, and I guess IPython > has specific mechanisms (I don't know

Re: [Matplotlib-users] Event handling... again

2012-07-04 Thread Jorge Scandaliaris
> De: Tony Yu > > >Just a wild guess: Any chance you're using some GUI-toolkit-specific >functionality? > > Can you elaborate please? I use the GTKAgg backend, and I guess IPython has specific mechanisms (I don't know the details) for keeping both the plot and the interpreter responsive, that

Re: [Matplotlib-users] Event handling... again

2012-07-04 Thread Tony Yu
On Wed, Jul 4, 2012 at 10:14 PM, Jorge Scandaliaris wrote: > Hi, > Are there any caveats when using events together with IPython that you > are aware of? I have some code that I use to interactively explore > images that works OK when run from a Python interpreter but does not > (see note) when ru

[Matplotlib-users] Event handling... again

2012-07-04 Thread Jorge Scandaliaris
Hi, Are there any caveats when using events together with IPython that you are aware of? I have some code that I use to interactively explore images that works OK when run from a Python interpreter but does not (see note) when run from IPython. With --pylab option the problems are more evident, but

Re: [Matplotlib-users] Event handling in pyqt4

2012-02-29 Thread Benjamin Root
On Wed, Feb 29, 2012 at 5:09 AM, Nils Wagner wrote: > Hi all, > > I tried to combine an event with an annotation. > However, the annotation is not visible, when I click on > the curves. > How can I resolve the problem ? > The code is available at http://pastebin.com/QxKBZtaX > Any pointer would be

[Matplotlib-users] Event handling in pyqt4

2012-02-29 Thread Nils Wagner
Hi all, I tried to combine an event with an annotation. However, the annotation is not visible, when I click on the curves. How can I resolve the problem ? The code is available at http://pastebin.com/QxKBZtaX Any pointer would be appreciated. Thanks in advance. Nils

Re: [Matplotlib-users] Event handling

2009-01-27 Thread John Hunter
On Tue, Jan 27, 2009 at 2:15 AM, Nils Wagner wrote: > Hi all, > > Is it possible to restrict the mouse movements to the points of a graph > (curve tracking) ? No, but you can obtain the vertices of the line that are within a tolerance of the clicked point using the picking functions. See the tu

[Matplotlib-users] Event handling

2009-01-27 Thread Nils Wagner
Hi all, Is it possible to restrict the mouse movements to the points of a graph (curve tracking) ? So far I am able to obtain the location of the mouse in data coordinates if the mouse is over an axes. A code snippet is attached. Thanks in advance. Nils from

Re: [Matplotlib-users] Event handling, API programming

2008-10-30 Thread Adam
On Wed, Oct 29, 2008 at 11:19 PM, Anthony Floyd <[EMAIL PROTECTED]> wrote: > Hi Adam, > > On Sun, Oct 26, 2008 at 4:34 PM, Adam <[EMAIL PROTECTED]> wrote: >> Hi, I'm trying to make myself a set of widgets for the first time. >> I've gotten to the point that I can draw rectangles and lines and make

Re: [Matplotlib-users] Event handling, API programming

2008-10-29 Thread Anthony Floyd
Hi Adam, On Sun, Oct 26, 2008 at 4:34 PM, Adam <[EMAIL PROTECTED]> wrote: > Hi, I'm trying to make myself a set of widgets for the first time. > I've gotten to the point that I can draw rectangles and lines and make > them do the right things when re-drawing figures, zooming, etc., but > I'm st

[Matplotlib-users] Event handling, API programming

2008-10-26 Thread Adam
Hi, I'm trying to make myself a set of widgets for the first time. I've gotten to the point that I can draw rectangles and lines and make them do the right things when re-drawing figures, zooming, etc., but I'm still a little lost on some points, and I haven't found any really good documentatio

Re: [Matplotlib-users] Event handling for several windows

2006-07-18 Thread John Hunter
> "Tommy" == Tommy Grav <[EMAIL PROTECTED]> writes: Tommy> I have a program that uses matplotlib to plot two images. Tommy> figim24 = figure(figsize=(5,5)) figim70 = Tommy> figure(figsize=(5,5)) Tommy> I want an event loop that will be able to register which of Tommy> the

[Matplotlib-users] Event handling for several windows

2006-07-17 Thread Tommy Grav
I have a program that uses matplotlib to plot two images. figim24 = figure(figsize=(5,5)) figim70 = figure(figsize=(5,5)) I want an event loop that will be able to register which of the two figures I mouse click in. When I only had one figure I used figim24.canvas.mpl_connect("button_press_event