Re: [matplotlib-devel] wrote a selection bar widget (attached)

2008-11-26 Thread John Hunter
On Wed, Nov 26, 2008 at 11:57 AM, Egor Zindy <[EMAIL PROTECTED]> wrote: > thank you, I'll have to check out the repository to see how I can use the > changes. > > Just a thought: a figure_leave / figure_enter event could be triggered by > comparing the currently held axis with event.inaxes (that's

Re: [matplotlib-devel] wrote a selection bar widget (attached)

2008-11-26 Thread Egor Zindy
John Hunter wrote: > On Wed, Nov 26, 2008 at 10:59 AM, John Hunter <[EMAIL PROTECTED]> wrote: > > >> probably fairly easy using a class level attr in the MouseEvent. >> Another possibility would be to add support for figure_enter_event, >> figure_leave_event, axes_enter_event, axes_leave_event.

Re: [matplotlib-devel] wrote a selection bar widget (attached)

2008-11-26 Thread John Hunter
On Wed, Nov 26, 2008 at 10:59 AM, John Hunter <[EMAIL PROTECTED]> wrote: > probably fairly easy using a class level attr in the MouseEvent. > Another possibility would be to add support for figure_enter_event, > figure_leave_event, axes_enter_event, axes_leave_event. The user code > would have to

Re: [matplotlib-devel] wrote a selection bar widget (attached)

2008-11-26 Thread Egor Zindy
John Hunter wrote: > On Wed, Nov 26, 2008 at 10:41 AM, Drain, Theodore R > <[EMAIL PROTECTED]> wrote: > > >> I'm pretty sure this is exactly what's happening. This is also >> annoying when you're trying to use a zoom rectangle and want to start >> at some point in the plot and drag it to the b

Re: [matplotlib-devel] wrote a selection bar widget (attached)

2008-11-26 Thread John Hunter
On Wed, Nov 26, 2008 at 10:41 AM, Drain, Theodore R <[EMAIL PROTECTED]> wrote: > I'm pretty sure this is exactly what's happening. This is also annoying when > you're trying to use a zoom rectangle and want to start at some point in the > plot and drag it to the boundary. We've been planning o

Re: [matplotlib-devel] wrote a selection bar widget (attached)

2008-11-26 Thread Drain, Theodore R
> > Things I struggled with: > > * When a bar is dragged towards one of the figure edges too quickly, > it gets > > stuck in its last recorded position on the graph (that should be the > figure > > edge). > > I think the cause of this is when your mouse leaves the axes, the axes > stops processing

Re: [matplotlib-devel] wrote a selection bar widget (attached)

2008-11-26 Thread John Hunter
On Wed, Nov 26, 2008 at 5:34 AM, Egor Zindy <[EMAIL PROTECTED]> wrote: > Dear matplotlib devels, > > I wrote a selection widget someone else might find useful. The widget is > based on the slider widget.> > Things I implemented: > * blitting (bar still flashes once when clicked on, sorry about that