## [Matplotlib-users] Adjust width between subplots

 [Matplotlib-users] Adjust width between subplots From: Tom Johnson - 2007-11-27 19:46:50 ```I'd like to make the separation distance between two subplots to be much smaller. How can I achieve this? ```

 [Matplotlib-users] Adjust width between subplots From: Tom Johnson - 2007-11-27 19:46:50 ```I'd like to make the separation distance between two subplots to be much smaller. How can I achieve this? ```
 Re: [Matplotlib-users] Adjust width between subplots From: John Hunter - 2007-11-27 19:48:26 ```On Nov 27, 2007 1:46 PM, Tom Johnson 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 ```
 Re: [Matplotlib-users] Adjust width between subplots From: Tom Johnson - 2007-11-27 19:56:46 ```On Nov 27, 2007 11:48 AM, John Hunter 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). ```
 Re: [Matplotlib-users] Adjust width between subplots From: Tom Johnson - 2007-11-27 19:58:13 ```Doh! Sorry, I adjusted the wrong space. On Nov 27, 2007 11:56 AM, Tom Johnson wrote: > On Nov 27, 2007 11:48 AM, John Hunter 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). > ```
 Re: [Matplotlib-users] Adjust width between subplots From: John Hunter - 2007-11-27 20:00:10 ```On Nov 27, 2007 1:56 PM, Tom Johnson 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) ```