history plot cannot unzoom

Issue #208 resolved
dd1 created an issue

old history plots had the “-” button I could press to unzoom the current plot. The new plots only have the zoom function, after zoom in, I cannot unzoom back. This is needed when exploring history data from the past. K.O.

Comments (4)

  1. Stefan Ritt

    People who zoom with the mouse wheel just rotate the mouse wheel in the other direction to un-zoom. Like on Google maps. People who zoom by selecting a region on the X or Y axis can un-zoom to the original scale by clicking the “Reset histogram icon” (circle with arrow, second icon from top). I just added a keyboard shortcut for this function, so just hit the 'r' key to do that.

    If more people will ask for an “unzoom” button, I will consider adding one. At the moment nobody else requested that, so people seem in generally be happy with the current zoom functionality.

  2. dd1 reporter

    I made my mind. Zooming using the mouse is too imprecise. Zooming using the touch-pad is even worse.

    I prefer to have a button to zoom/unzoom by factor of 2 exactly. This way, pressing the zoom button, then the unzoom button puts me back where I started. This is impossible using mouse or trackpad. (partially because zooming is done relative to the mouse position, if the mouse also moves when I zoom, I can never get back to where I started).

    The zoom/unzoom buttons should zoom relative to the middle of the plot, not relative to the current mouse position.

    K.O.

  3. Stefan Ritt

    I implemented zoom buttons in the last commit.

    https://bitbucket.org/tmidas/midas/commits/1aa421e97f110ae3101624390db72075dfdfdfa1

    They work exactly as requested, with one addition. People using the mouse wheel to zoom do not need those buttons, and they are annoyed by these buttons taking screen real estate. So I made the button disappear as soon as the user starts to zoom with the mouse wheel. Resetting the axes (by hitting the circle arrow button or pressing the 'r' key) reveals the buttons again.

  4. Log in to comment