I have some .py’s that run either with a display or headless, generating frames of an animated gif. In one of those scripts, there was a plt.show() but not plt.close(). As a result, the headless runs aggregated all the prior plots into each subsequent frame, because in a headless environment I guess plt.show() is a NOOP whereas when a display is involved it ends up doing the equivalent of a plt.close().
I can gather more information if necessary. However, I don’t have access to the specific display environment at the moment and this issue seems easy enough to consider as described above.
Is this desirable/expected behavior or should I open a bug or feature request? It may be reasonable to expect that in headless environments, plt.show() should still have the same side-effects as in heads-up environments?