Navigation toolbar redraw button

Sounds awesomely powerful - not since the development of John Harrison's clocks will navigation have taken such a great step forward :slight_smile:


----- Original Message -----
From: John Hunter <jdhunter@...4...>
Date: Sun, 16 Nov 2003 07:50:53 -0600
To: "Gary Ruben" <gazzar@...25...>
Subject: Re: [Matplotlib-users] Navigation toolbar redraw button

聽聽聽聽> I think it's important to always have an easy way of zooming
聽聽聽聽> out to show the full plot, so if you implement your saved
聽聽聽聽> view idea and don't want to add a 'fit to full data' button,
聽聽聽聽> I think having a 'fit to full data' checkpoint automatically
聽聽聽聽> added is important. It might be even be worth looking into
聽聽聽聽> cacheing the full view to speed its rendering. That way, you
聽聽聽聽> could quickly navigate by zooming to full and then using a
聽聽聽聽> rectangle zoom to your area of interest.

Combining my original thoughts with yours and Charles, then. How
about the following? Allow the user to select the old style toolbar
from a config file, but the new toolbar would

聽聽1) lose all the left, right, up down buttons, in favor of a single
聽聽聽聽聽'hand' icon that allows you to move the view limits by 'grabbing
聽聽聽聽聽them in the axes and moving them around. With x or y key pressed
聽聽聽聽聽the pan motion will be contained to the respective axis. The
聽聽聽聽聽mouse button which activates this in the axes should be easily
聽聽聽聽聽configurable so as to not class with application developers.

聽聽2) have a zoom in and zoom out button that work on both axis
聽聽聽聽聽symmetrically unless the 'x' or 'y' modifier keys are pressed in
聽聽聽聽聽which case work only on that axis. Allow similar functionality
聽聽聽聽聽with the mouse in the axes, eg wheel mouse, as Charles suggested
聽聽聽聽聽or mouse-3 as vtk interactor windows use. Then you could pan and
聽聽聽聽聽zoom in an axes without ever removing your mouse from the axes

聽聽3) have a zoom rectangle tool that allows you to zoom to a selected
聽聽聽聽聽rectangle, constrained to maintain axis ratio if CTRL is pressed

聽聽4) have a zoom to data button that changes viewlim to incorporate
聽聽聽聽聽entire dataset

聽聽5) use the 'views' navigation with forward / mark / and back buttons
聽聽聽聽聽that allows you to navigate between views

聽聽6) lose the redraw button, obsolete

聽聽7) have a savefig button which allows you to set the dpi, filename
聽聽聽聽聽and backend, so you can output with ps, gd, or gtk backend

聽聽8) close window unchanged.

Further comments?


Sign-up for your own personalized E-mail at

Search Smarter - get the new eXact Search Bar for free!