On 08/04/2010 06:19 AM, John Hunter wrote:
> On Wed, Aug 4, 2010 at 11:07 AM, Tommy Grav<tg...@ma...> wrote:
>> A rather simple question, but I could not find the
>> answer while rummaging around on the matplotlib
>> webpages. Is there a way to increase the size of
>> the tick label sizes from say fontsize 9 to 12?
>
> for label in ax.get_xticklabels() + ax.get_yticklabels():
> labe.set_fontsize(12)
>
> You may want to take a look at the artist tutorial, which gives an
> overview of all the objects in the matplotlib figure, how to get at
> them and modify them, etc.
>
> http://matplotlib.sourceforge.net/users/artists.html
>
> JDH
Also, if you are running mpl 1.0, you can use the tick_params Axes
method or pyplot function. E.g.,
ax.tick_params(labelsize=12)
Eric
|