Luca Fiaschi Luca Fiaschi - 1 year ago 100
Python Question

make matplotlib plotting window pop up as the active one

I'm working with python and matplotlib on mac os x.
When I'm working on many different windows and I have to run a script which produces a plot, the plot window always open behind the active window and is very frustration having to switch between windows for looking at the image.
Is it any why to decide the location of the plot window, and/or pop up it as foreground window?


Answer Source

I was bothered by exactly the same problem. I found finally a solution (in pylab mode, with qt4agg backend):



fig = gcf()

Regards, Markus

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download