Skip to content

Instantly share code, notes, and snippets.

@ZGainsforth
Last active February 11, 2016 00:27
Show Gist options
  • Select an option

  • Save ZGainsforth/665fc2b44d859dc64939 to your computer and use it in GitHub Desktop.

Select an option

Save ZGainsforth/665fc2b44d859dc64939 to your computer and use it in GitHub Desktop.
Plot matplotlib figures to the foreground.
# Call this just before plt.show()
def raise_window(figname=None):
if figname: plt.figure(figname)
cfm = plt.get_current_fig_manager()
cfm.window.activateWindow()
cfm.window.raise_()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment