From: Adam <keflavich@gm...>  20090629 15:10:44

Thanks JaeJoon, that worked. Adam On Mon, Jun 29, 2009 at 9:03 AM, JaeJoon Lee<lee.j.joon@...> wrote: > Yes, I can reproduce this with the current svn. > > I think what's happening is that, with larger number of grid, there > is slight overlapping between each subplots (likely due to the > floating point error). Note that subplot command deletes existing axes > if they overlap with the new one. > > There would be several workarounds. You may use nonzero spacing, eg, > 0.001 worked for me. Or, you may manually add subplots to the figure > to avoid any deletion of existing axes. > > from matplotlib.axes import Subplot > > fig = gcf() > > subplots_adjust(hspace=0.,wspace=0.) > > for i in xrange(1,65): > ax = Subplot(fig, 8, 8, i) > fig.add_subplot(ax) > plot( [0,1] ) > > Regards, > > JJ > > > On Mon, Jun 29, 2009 at 10:29 AM, keflavich<keflavich@...> wrote: >> >> Hi, I'm trying to make a large grid of subplots with no spacing between. The >> following code fails for any grid size larger than 6x6 by skipping a row and >> a column. >> >> for i in xrange(1,65): >> subplot(8,8,i) >> plot( [0,1] ) >> subplots_adjust(hspace=0,wspace=0) >> >> Is there a way around this problem? >> >> Thanks, >> Adam >>  >> View this message in context: http://www.nabble.com/subplotswithnospacebetweenlimitedto6x6tp24255224p24255224.html >> Sent from the matplotlib  users mailing list archive at Nabble.com. >> >> >>  >> _______________________________________________ >> Matplotlibusers mailing list >> Matplotlibusers@... >> https://lists.sourceforge.net/lists/listinfo/matplotlibusers >> > 