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 

Attachment: signature.asc
Description: Digital signature

------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to