python - make matplotlib plotting window pop up as the active one -



python - make matplotlib plotting window pop up as the active one -

i'm working python , matplotlib on mac os x. when i'm working on many different windows , have run script produces plot, plot window open behind active window , frustration having switch between windows looking @ image. why decide location of plot window, and/or pop foreground window?

thanks

i bothered same problem. found solution (in pylab mode, qt4agg backend):

get_current_fig_manager().window.raise_()

or

fig = gcf() fig.canvas.manager.window.raise_()

regards, markus

python osx matplotlib

Comments

Popular posts from this blog

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

Is there a way to convert an HTML page styled with Bootstrap CSS into email-compatible html? -