On Thu, Jul 5, 2012 at 8:12 AM, David Kremer <david.kremer.dk@gmail.com> wrote:
Hello,

I know how one can increase the font size in the xlabel and ylabel
fields. I use the methode presented in:

http://matplotlib.sourceforge.net/examples/pylab_examples/dannys_example.html

But I don't know how to increase the font size for the numbers labelling
the xticks or the yticks, and found nothing in the doc. May you help ?

David


Hi David,

You can call `tick_params`; e.g.,

    plt.tick_params(labelsize=20)

If you want to change just one axis

    ax.xaxis.set_tick_params(labelsize=20)

This assumes your axes object (from `plt.subplots`, `fig.add_subplot`, `plt.gca()`, etc.) is named `ax` .

Best,
-Tony