Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zooming out after zooming in for a plot in MSlice does not result in the initial plot #574

Open
SilkeSchomann opened this issue Jan 22, 2021 · 2 comments
Labels

Comments

@SilkeSchomann
Copy link
Collaborator

Expected Behavior
When zooming into a plot and zooming out again with the same number of zoom steps the initial plot should be displayed again.

Actual Behavior
Occasionally the resulting plot is different from the initial plot.

Steps to reproduce the behavior
This has been observed in different plots but seems to be most common in interactive cut plots.

  1. Open MSlice
  2. Load any data
  3. Go to the Workspace Manager tab
  4. Click on the Slice tab and then on Display
  5. Click on Interactive Cuts
  6. Select an area in the plot
  7. Zoom in and then out again in the cut plot
@mducle
Copy link
Member

mducle commented Jan 22, 2021

Yes, I've seen this bug around a few times, but I'm not sure how to fix it. The zoom in button is just mapped to Matplotlib's NavigationToolbar2QT.zoom whilst the zoom out is just mapped to NavigationToolbar2QT.back - so it always seemed to me that it was an issue with Matplotlib... For the interactive cut it could be that when we update the cut that matplotlib resets the zoom so back means a different thing to what the users would expect.

@MialLewis
Copy link
Contributor

I've tried to recreate this, but not sure I am seeing the same bug. I have seen a few occasions where the zoom out button seems to "double zoom" i.e. if you zoom in 4 times it only takes 3 zoom outs to restore the original plot. I have not seen a material difference in the plot you start with and the plot you end with after zooming (aside from taking a different number of zoom in/outs to reach that point)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants