Hmm, maybe my expectations are not common. Generally when I'm zooming in on data, I want to zoom multiple times one right after another.
You always want this behavior when you're panning: you don't want the pan tool to deselect after you release the button. I'm not quite sure why anyone would want a different behavior with zoom (so I guess I'm agreeing that the current behavior with respect to keeping zoom tool selected is the right choice). I'm just bit confused on what the big deal is. Click to pick, Click and drag to get your zoom box. My suggestion would be something similar to the Inkscape tool interface. The spacebar switches between the select tool and the last-used tool. M On 8/21/14 3:02 PM, Joe Kington wrote: > I think the OP's desire is to have pick events fire after the zoom has > been triggered. > > Currently, after you zoom (or pan), the zoom tool is still active until > you click it again. Pick events won't fire while the zoom tool is the > selected tool, and you have to manually de-select it (i.e. click the > zoom button again for pick events to work). > > The current behavior is the right default choice, i.m.o., but it's > counter-intuitive when combined with pick events. > > When you're building a gui to interact with data (or, for example, when > using mpldatacursor -- this is a question I get a lot), a common > expectation is that after you zoom once, the zoom tool is no longer > active. Pick events should work again. > > Currently, you have to subclass (or monkey-patch) the toolbar to make > this happen. It's a bit of a pain. (It's more complicated that just > setting `fig.canvas.toolbar._active`.) (If I'm wrong about that, please > let me know!!!) > > It would be nice to have an easier way to "deactivate" the zoom/pan > tool. I think the "new" toolbar might have that, but I haven't checked. > > Cheers, > -Joe > ------------------------------------------------------------------------------ Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users