I am using the Spyder IDE and I find that matplotlib figure windows always get displayed behind other windows. For example, immediately after starting Spyder, if I type plt.plot([0,1],[0,1])
in the console, I get a plot behind the main Spyder window. How can I make new figure windows display on top off all other windows?
I found this solution (make matplotlib plotting window pop up as the active one), but it does not work for me in Spyder. I run into trouble with fig.canvas.manager.window
. It says AttributeError: 'FigureManagerMac' object has no attribute 'window'
.