On Thu, Oct 28, 2010 at 1:18 PM, Will Grover <email@example.com> wrote:
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:
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,
It is *possible*, but it is probably would be an incredible amount of work (unless someone knows of some nifty trick that I am not aware of). My suggestion to make things appear more "even" is to adjust the position of the ylabels in the second column to that it takes up more room between the first two columns.
The hard way would be to manually specify the extents in the "position" kwarg [left, bottom, width, height] for the constructor of the axes object. The values for those four parts would be in the coordinate system of the figure object.
I hope that is helpful,