I'd like to make the separation distance between two subplots to be much smaller. How can I achieve this?
On Nov 27, 2007 1:46 PM, Tom Johnson <tj...@gm...> wrote: > I'd like to make the separation distance between two subplots to be > much smaller. How can I achieve this? Use the subplots_adjust paramters, eg fig.subplots_adjust(hspace=0) JDH
On Nov 27, 2007 11:48 AM, John Hunter <jd...@gm...> wrote: > Use the subplots_adjust paramters, eg > > fig.subplots_adjust(hspace=0) > This wasn't working for me... from pylab import * f = gcf() f.subplots_adjust(hspace=0) f.add_subplot(121) f.add_subplot(122) show() Adjusting the space after adding the subplots did not work either (using SVN).
Doh! Sorry, I adjusted the wrong space. On Nov 27, 2007 11:56 AM, Tom Johnson <tj...@gm...> wrote: > On Nov 27, 2007 11:48 AM, John Hunter <jd...@gm...> wrote: > > Use the subplots_adjust paramters, eg > > > > fig.subplots_adjust(hspace=0) > > > > This wasn't working for me... > > from pylab import * > f = gcf() > f.subplots_adjust(hspace=0) > f.add_subplot(121) > f.add_subplot(122) > show() > > Adjusting the space after adding the subplots did not work either (using SVN). >
On Nov 27, 2007 1:56 PM, Tom Johnson <tj...@gm...> wrote: > > Use the subplots_adjust paramters, eg > > fig.subplots_adjust(hspace=0) > This wasn't working for me... Oh, I was assuming you wanted to adjust the space between two subplots stacked one over another. For side-by-side, use wspace f.subplots_adjust(wspace=0)