From: John H. <jdh...@ac...> - 2006-09-17 15:08:33
|
>>>>> "Zack" == Zack <za...@gm...> writes: Zack> Hi, all how to change the spacing between axes and ticks Zack> labels, ticks labels and axes labels? I mean vertical Zack> spacing for X axis and horizontal one for Y. See these parameters from your matplotlibrc file: http://matplotlib.sf.net/matplotlibrc xtick.major.pad : 4 # distance to major tick label in points xtick.minor.pad : 4 # distance to the minor tick label in points ytick.major.pad : 4 # distance to major tick label in points ytick.minor.pad : 4 # distance to the minor tick label in points >From code, you can also control the pad with, for example, for tick in ax.xaxis.get_major_ticks(): tick.set_pad(6) ditto for the yaxis and minor ticks.. JDH |