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.

The toggle button would make it more obvious that the constraint options 
exist, and would make the operation easier on my laptop with the 
trackpad, but it is much less tempting now that you have reminded me of 
the keys.  On the other hand, given that the basic functionality is 
already there with the keys, it would presumably be easier than I 
thought to add the button--although Darren doesn't like that interface 
design, and he may have a good point.

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

> 
> I do think Darren's suggestion of making the toolbar more easily
> extensible and configurable is a good one.  A colleague of mine
> recently wanted to change the icons, drop a couple of buttons, and add
> a couple of new ones, and I think he ended up just pasting in the code
> for NavigationToolbar and modifying what he needed.  Not very
> attractive from a design persepcetive.

I agree entirely that it would be nice if it were easy for a user to pop 
buttons in or out of the toolbar.  I'm glad Darren is interested; it is 
not something I would be likely to pursue myself.  Too hard, with all 
the gui backends.

Eric
> 
> 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