You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Showing figures from multiple python-instances causes blank figures #31066
First of all, I've tested this with a range of matplotlib versions, and triggered the same behaviour repeatedly. Due to that, I don't think this is really an issue with matplotlib, but rather some other library being used in relation to the backend. Regardless, I don't really know where else I would post to try to find the underlying problem to find a fix.
if I run this multiple times without closing the plot in-between (not using IPython or anything, just executing directly as python mre.py from three different terminal windows), I consistently get a blank figure on the third (and all subsequent) execution(s).
Code for reproduction
# mre.pyimportmatplotlib.pyplotaspltplt.plot([1, 2, 3], [1, 2, 3])
plt.show()
# Run with three or more independent instances without closing the shown window.
Actual outcome
Blank figure on the third (and subsequent) execution(s):
Expected outcome
Should simply get the plot several times (as I have for many years).
I cannot reproduce this on my Mac. I was able to open at least 5 different windows from five different prompts. Hard to know what broke on your install, but I would try a fresh environment.
I have no idea what was going on, but today this works as expected again. Haven't reinstalled anything, still using the same venv, haven't even restarted my machine. Smells like something wonky going on with my machine more than anything else. Sorry for the trouble, I'll just close this since even I can't reproduce it anymore.
Activity
jklymak commentedon Feb 3, 2026
I cannot reproduce this on my Mac. I was able to open at least 5 different windows from five different prompts. Hard to know what broke on your install, but I would try a fresh environment.
vegardjervell commentedon Feb 4, 2026
I have no idea what was going on, but today this works as expected again. Haven't reinstalled anything, still using the same
venv, haven't even restarted my machine. Smells like something wonky going on with my machine more than anything else. Sorry for the trouble, I'll just close this since even I can't reproduce it anymore.