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
ValueError exception in drag_zoom (tk backend) #1944
Conversation
Hmmm. I use the tk backend all the time and haven't seen this issue. Are you using specific Artist type or projection? Anything that might make it easier to reproduce will be valuable, otherwise I fear we might struggle to fix this one. |
After some days testing version 1.2, I'm not able to reproduce this bug anymore. Maybe we can just close this issue. |
Ok thanks @marblestation. If you ever come across it again (or anybody else does) we can re-open and (hopefully) reproduce. Cheers, |
@lyvic: Thanks so much for this investigation and the clear explanation. I can reproduce it now and will look into a fix. |
…l" rather than putting us in an unresolved state.
@marblestation , @lyvic: Can you confirm that the attached patch resolves your problem? |
Note to self: backport this to 1.2.x |
@mdboom I would love to, but I'm a little overwhelmed here. First contact with OOP and Python was about two months ago. |
if self._ids_zoom != []: | ||
for zoom_id in self._ids_zoom: | ||
self.canvas.mpl_disconnect(zoom_id) | ||
self.zoom() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think there should be here a self._ids_zoom = []
line, to allow switching back to zoom again (addressing @lyvic comment).
Thanks. I think I have it working so that the zoom rectangle continues to work, even after a cancel. |
ValueError exception in drag_zoom (tk backend)
ValueError exception in drag_zoom (tk backend)
Great! Thanks for solving this. |
I have an application that uses Tkinter and matplotlib 1.1.1rc to visualize some plots and axvspans. From time to time, when I drag the plot in pan mode I've got this Exception and I should kill the application:
It does not happen always, only from time to time so it makes difficult to reproduce it.