From: Paul I. <piv...@gm...> - 2011-02-28 18:59:32
|
Boyle, Jim, on 2011-02-28 08:40, wrote: > I am using AxesGrid (from mpl_toolkits.axes_grid1 import > AxesGrid) to generate multi-panel plots. It does very well > except I have a problem with a blank subplot. I have 5 plots > to display and the geometry of nrows_ncols=(3,2) produces the > plot that I want except there is a frame placed in the last > position - for which I did not call a plot. > > I cannot figure out an elegant way to supress this frame. The > kludge I use now is to just set the edgecolor of the last grid > subplot to the background and so it is not visible. > > All the examples have an even number of subplot figures so the > grid is filled and this situation does not occur. Hi Jim, how's this: import matplotlib.pyplot as plt from mpl_toolkits.axes_grid1 import AxesGrid ag = AxesGrid(plt.figure(),(0,0,1,1),(2,3)) ag.axes_all[-1].set_visible(False) best, -- Paul Ivanov 314 address only used for lists, off-list direct email at: http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7 |