On Sun, Apr 13, 2008 at 9:37 PM, Eric Firing <[EMAIL PROTECTED]> wrote:
> John Hunter wrote:
>
> > On Sun, Apr 13, 2008 at 6:39 PM, Eric Firing <[EMAIL PROTECTED]> wrote:
> >
> > > The present NavigationToolbar2 is very nice, but I am thinking about an
> > >  improvement: adding a button that would rotate a constraint among three
> > >  possibilities, so that pan/zoom and rectangle select could be set to
> > >  affect only X, only Y, or be left unconstrained as at present.
> > >
> >
> > I assume you know that for panning and zooming, if you hold down the
> > 'x' key the pan/zoom is constrained in the horizontal direction and if
> > you hold down the 'y' key it is constrained to the vertical direction.
> >  It would not be hard to add support using these keys to the
> > zoom-to-rect.  Do you think having a toggle button adds more than
> > simply using these key presses?
> >
>
>  Aha! Evidently I *should* have known, but I *didn't* know, about the x and
> y keys.  Sounds more and more familiar now, so I'm sure I saw some reference
> to it quite a while ago.  Strangely, I did not stumble over it yesterday or
> today when looking at the code from the standpoint of making the proposed
> change.

It is mentioned in the tutorial
http://matplotlib.sourceforge.net/tutorial.html#toolbar2 and in the
"toolbar2" section if the user's guide.  There are other nifty nuggets
in there, like zoom to point in the zoom mode.

>  Adding the key support to the zoom-to-rect definitely would help.

This seems like a god piece of low hanging fruit.  Another feature
that a couple of folks have mentioned to me off list would be in an
constrained zoom to rect, to have the ylim (optionally) autoscale over
the y data in the zoomed region.

JDH

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to