stretch x-axis

Hello all,

I am struggling to improve the layout of these subplots. You can see that the x tick labels on the left subplot are crunched. I simply want to stretch the x axis a bit in order to spread out the x ticks. Do you have any suggestions?

Thanks!

Neil

histogram.eps (34 KB)

···

-----

Here is my code:

P.figure()
P.subplots_adjust(wspace=0.4)

P.subplot(121)
P.hist([el_mean_diff,ln_mean_diff],bins=[-.7,-.6,-.5,-.4,-.3,-.2,-.1,0,.1,.2,.3,.4,.5,.6,.7],color=['red','blue'],align='mid')
P.title('a) mean')
P.xlabel('Average difference at each grid point (m/s) ')
P.ylabel('Number of grid points')
P.tick_params(axis='both',direction='out',top='off',right='off',length=2,labelsize='10')
P.grid(True)

P.subplot(122)
P.hist([el_stdv_diff,ln_stdv_diff],bins=[-.5,-.4,-.3,-.2,-.1,0,.1,.2,.3,.4,.5],color=['red','blue'],align='mid')
P.title('b) standard deviation')
P.xlabel('Average difference at each grid point (m/s) ')
P.ylabel('Number of grid points')
P.tick_params(axis='both',direction='out',top='off',right='off',length=2,labelsize='10')
P.grid(True)

P.show()
----