Original report at SourceForge, opened Fri Nov 19 21:14:12 2010
With the MacOSX backend creating a figure object causes the GUI to pop up, even if it is not needed. For example, executing the following brings up the GUI, even though this is irrelevant to the code's operation:
import matplotlib.pyplot as plt
print ', '.join(plt.figure().canvas.get_supported_filetypes().keys())
The problem is discussed further in this matplotlib-devel thread:
With the latest version of matplotlib (downloaded from github), I am getting the same behavior for the Tkagg backend and the MacOSX backend. If matplotlib is interactive, a figure pops up; if matplotlib is not interactive, no figure pops up, for both backends. Can you confirm that this issue can be closed?
With the MacOSX and TkAgg backends, the call to plt.figure() adds a new icon to the launcher, but no actual window pops up. Closing the icon by ctrl+clicking -> quit closes the python session that the figure was launched from.
I can't tell if this is the problem that the original user was reporting or not.