Can we control where matplotlib places figures on the screen? I want to generate four figures (in four separate windows) that do not overlap.
Thanks.
Can we control where matplotlib places figures on the screen? I want to generate four figures (in four separate windows) that do not overlap.
Thanks.
The easiest way I know to do this is to make the window for the figure in your prefered GUI application, and then put the matplotlib figure into this window. There are a bunch of examples of how to do this embedding using different GUI frameworks here.
The code samples can look a bit complicated, but it's mostly boilerplate where you'll only need to modify a few lines.
From IPython you can do the following:
figure()
get_current_fig_manager().window.wm_geometry("400x600+20+40")
or equivalently in a python script:
import pylab as pl
pl.figure()
pl.get_current_fig_manager().window.wm_geometry("400x600+20+40")
pl.show()
Note that this assumes you're using the TkAgg backend.