Bring matplotlib window to the front

737 views
Skip to first unread message

Herbert Sauro

unread,
Oct 16, 2013, 9:45:39 PM10/16/13
to spyd...@googlegroups.com
Is there anyway to bring a matplotlib window to the front of the screen after a call to show()? I am not using the IPython window. I've tried the following without success:

thismanager = plt.get_current_fig_manager()
thismanager.window.activateWindow()
thismanager.window.raise_()

I figured out I can move the plot window using:

thismanager.window.move (900,400)

Every time I do a plot the plot window appears then dispersal behind the spyder2 IDE meaning I have to bring it forward manually every time. The alternative is to arrange the plot window and IDE side by side, luckily the plot window appears to remember its last position. 

Any suggests welcomed.

Herbert

Carlos Córdoba

unread,
Oct 17, 2013, 2:12:39 AM10/17/13
to spyd...@googlegroups.com
Hi,

What's your operating system? Windows, Linux, Mac? On Linux the figure
always appears on front of Spyder, whereas on Mac it always goes to the
background. I think Windows has the same behavior that Linux.

However, if you're on Mac, I really don't know how to change the
situation. You could get a better answer in StackOverflow.

Cheers,
Carlos

El 16/10/13 20:45, Herbert Sauro escribió:
> --
> You received this message because you are subscribed to the Google
> Groups "spyder" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to spyderlib+...@googlegroups.com.
> To post to this group, send email to spyd...@googlegroups.com.
> Visit this group at http://groups.google.com/group/spyderlib.
> For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages