-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
NavigationToolbar2Tk behave unexpected when using it in with Tkinter Canvas #17584
Comments
Looks like the trick is to use |
@antzer Are you talking about matplotlib embedding code or my little snippet? If last, then I do not really inderstand where actually I used some "event" features in my snippet... |
I mean that Matplotlib should do so, not you. |
Strange that no one still met same troubles |
@anntzer any ideas for hot fix ? |
As I said the correct patch to Matplotlib is probably along the lines of what I wrote above, but you'll have to check that by yourself. |
I'm not surprised that this has not been reported before, as it's a very specific use case:
The bug is only visible if all of the above comes together. |
@timhoffm Agree. Do this circumstances mean that this "bug" is low-priority for MPL support team? |
Is there any other options to fit elongated graph (w = 100, h = 1000) in fixed size Tk canvas and to be able scale, move and so on? I mean I think it's really wide-spread task and I thought its solution already implemented in MatPlotLib. ... |
We do not formally have "low-priority" as most of the development is done by volunteers. It really depends case-by-case. If somebody picks this up, it might be fixed quickly, if not it might stay open for a long time. That said, Matplotlib is an open source project and pull requests are always welcome.
I'm not aware of any. |
noticed one more strange thing : size of FigureCanvasTkAgg (which is set as "t1, t2, w, h = self.figure.bbox.bounds" ) is not match with allocated by Tkinter area |
Bug report
Bug summary
NavigationToolbar2Tk behave unexpected when using it in with Tkinter Canvas(see attached gif for more details). When scroll a little bit my Canvas then tools like zoom, move (e.t.c) works like canvas area still locate on the previous position.
Actual outcome
``
Expected outcome
NavigationToolbar2Tk update its action area with new Scrollbar status
Matplotlib version
3.1.3
print(matplotlib.get_backend())
): TkAggAll packages installed using updated pip
The text was updated successfully, but these errors were encountered: