|
From: John H. <jdh...@ac...> - 2006-04-18 11:32:33
|
>>>>> "Malte" == Malte Marquarding <Mal...@cs...> writes:
Malte> Laziness ;-) Thanks, I just needed to know if there is
Malte> something I might have overlooked. I just couldn't think
Malte> of a case where you would want to change the tick label
Malte> size on an individual basis, so I thought there would be a
Malte> method in "axes.xaxis/axes.yaxis" to do this to the whole
Malte> list.
Malte> Is this something which could be added to the Formatter
Malte> classes, or maybe a Styler Class to change Font properties
Malte> and colors.
You can change the default tick label size by setting an rc
configuration parameter -- http://matplotlib.sf.net/matplotlibrc. See
the properties
xtick.major.size : 4 # major tick size in points
xtick.minor.size : 2 # minor tick size in points
xtick.major.pad : 4 # distance to major tick label in points
xtick.minor.pad : 4 # distance to the minor tick label in points
xtick.color : k # color of the tick labels
xtick.labelsize : 12 # fontsize of the tick labels
xtick.direction : in # direction: in or out
and ditto for yaxis. Also, if you like to save typing, you can use
the setp functionality to set multiple properties for multiple objects
w/o changing the defaults
setp(ax.get_xticklabels(), fontsize=12, color='red')
JDH
|