change tick label font size

I'm using matplotlib 0.9, is there a best way to do this:

    for labeltick in ax.xaxis.get_majorticklabels() +
ax.yaxis.get_majorticklabels():
        labeltick.set_fontsize(15)

I can't do:
ax.tick_params(labelsize=15) as here:
http://matplotlib.sourceforge.net/api/axes_api.html?highlight=ticklabel_format#matplotlib.axes.Axes.tick_params

is it a new feature?

Yes, this is a new feature for v1.0.0 because setting parameters for ticks have been so difficult and confusing in the past. The way you have it right now for version 0.9 is the “correct” way to do it for that version.

Ben Root

···

On Wed, Sep 29, 2010 at 4:21 AM, Ruggero <giurrero@…287…> wrote:

I’m using matplotlib 0.9, is there a best way to do this:

for labeltick in ax.xaxis.get_majorticklabels() +

ax.yaxis.get_majorticklabels():

    labeltick.set_fontsize(15)

I can’t do:

ax.tick_params(labelsize=15) as here:

http://matplotlib.sourceforge.net/api/axes_api.html?highlight=ticklabel_format#matplotlib.axes.Axes.tick_params

is it a new feature?