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
close_event
Other backends properly call the close event, but it seems there is an issue with Agg specific to 3.4.
Agg
import matplotlib import matplotlib.pyplot as plt matplotlib.use('Agg') def _close(event): print(event) fig, ax = plt.subplots() fig.canvas.mpl_connect('close_event', _close) plt.close(fig) matplotlib.use('Qt5Agg') fig, ax = plt.subplots() fig.canvas.mpl_connect('close_event', _close) plt.close(fig)
Actual outcome
No call to close for Agg.
Expected outcome
Calls from both backends with print outputs.
Matplotlib version
import matplotlib; print(matplotlib.__version__)
print(matplotlib.get_backend())
The text was updated successfully, but these errors were encountered:
mne-tools/mne-python#9201
Sorry, something went wrong.
Is this specific to 3.4? #18609 already discussed this at length, but that was in 3.3.
Huh, some tests started failing related to this after the change to 3.4 but I just checked and it was in 3.3 so I better check to see what actually changed. Thanks for the comment.
No branches or pull requests
alexrockhill commentedMar 27, 2021
Bug report
Other backends properly call the close event, but it seems there is an issue with
Agg
specific to 3.4.Actual outcome
No call to close for
Agg
.Expected outcome
Calls from both backends with print outputs.
Matplotlib version
import matplotlib; print(matplotlib.__version__)
): 3.4.0print(matplotlib.get_backend())
):The text was updated successfully, but these errors were encountered: