MacOSX backend brings up GUI unnecessarily #188

ddale opened this Issue Jun 20, 2011 · 2 comments


None yet

3 participants

ddale commented Jun 20, 2011

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
import matplotlib.pyplot as plt
print ', '.join(plt.figure().canvas.get_supported_filetypes().keys())

The problem is discussed further in this matplotlib-devel thread:

SourceForge History

  • On Sat Jan 15 20:35:26 2011, by efiring: assigned_to: 100
mdehoon commented Mar 4, 2012

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?

pelson commented Jun 22, 2012

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.

@pelson pelson closed this Aug 19, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment