From: Jason G. <jas...@cr...> - 2010-12-15 03:24:20
|
On 10/28/10 1:18 PM, Will Grover wrote: > Hello matplotlib-users, > > I'm using subplots to make an array of plots, but because some of the plots > have wider y-axis tick labels than others, some of the subplots end up > looking too close to each other. Here's an image that shows what I mean: > > http://web.mit.edu/wgrover/www/spacing.png > > I'm currently using pylab.subplots_adjust(hspace = __, vspace = __) to > adjust the subplot spacing, but since that applies to all subplots, no one > setting looks right for the entire array of plots. Is there any way to set > the spacing so that the subplots *plus tick labels* are evenly distributed? > Or can I manually specify the spacing between each subplot? Thanks, (to those more knowledgeable than me...) Is this something that ImageGrid would solve? http://matplotlib.sourceforge.net/mpl_toolkits/axes_grid/users/overview.html#axes-grid1 Also, could you use subplotpar to adjust spacing in each subplot? http://matplotlib.sourceforge.net/users/gridspec.html#adjust-gridspec-layout Thanks, Jason |