-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Two TKagg widows popping up - should be one #1212
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
Comments
Marked as 1.2 release critical - we probably don't want 1.2 going out of the door without fixing this. |
@dmcdougall should probably have some visibility of this issue. |
Hmmmmmm. Pants. I'll look into it this evening. I reckon a simple: if matplotlib.is_interactive():
canvas = None
else:
canvas = self._canvas_setup() should work, unless I'm missing something. |
I don't think so. I'm not working in interactive mode here (unless I've missed the meaning of @dmcdougall : To completely abuse its original meaning, I quote Martin Luther King, Jr. :
|
Fitting :) Ok. I suppose the question I'm trying to answer is, "How do I determine whether an interactive backend is currently loaded?" Edit: Assuming, of course, that this behaviour also occurs with the GTK and Qt backends... |
I don't see the double window behaviour with either the |
@verbit Line 508 of FigureCanvas = FigureCanvasTkAgg so the return value of Perhaps this is actually a bug in the |
@dmcdougall : I think @verbit is raising a completely different issue. I think its best we discuss this inline on the original PR rather than muddying the issue here. |
Ah right, these two issues are completely separate. Sorry, the timing of each of the issues threw me. @pelson For some reason the tk backend crashes my entire ipython session, probably just using an outdated version or something. Do you see this behaviour with any of the other interactive backends? |
As a result of #1125 we now get two tk windows from the following code:
I have commented where (and potentially how) I think the problem should be resolved.
The text was updated successfully, but these errors were encountered: