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_()