controlling tick label size

Trying to find a simple way to shrink the tick labels for this plot -
since I can have many tiny histograms, the labels need to be smaller,
but it isn't obvious to me how to simply shrink them.

code snippet...

num = len(datasets)
fig = plt.figure()
rows = np.int(np.sqrt(num))
cols = np.int(float(num)/float(rows)+.9)
for i in range(num):
    ax = fig.add_subplot(rows, cols, i+1)
    ax.hist(datasets[i][np.isfinite(datasets[i])], bins=60 )
    ax.set_xlabel(labels[i], size = 9)
    ax.set_ylabel('Counts', size = 9)
plt.show()

···

--
-----------------------------------------------------------------------

Alan K. Jackson | To see a World in a Grain of Sand |
alan@...895... | And a Heaven in a Wild Flower, |
www.ajackson.org | Hold Infinity in the palm of your hand |
Houston, Texas | And Eternity in an hour. - Blake |

-----------------------------------------------------------------------

Never mind - I just saw the very timely e-mail from Jouni.

Thanks!

···

On Sun, 8 Feb 2009 14:16:59 -0600 Alan Jackson <alan@...895...> wrote:

Trying to find a simple way to shrink the tick labels for this plot -
since I can have many tiny histograms, the labels need to be smaller,
but it isn't obvious to me how to simply shrink them.

code snippet...

num = len(datasets)
fig = plt.figure()
rows = np.int(np.sqrt(num))
cols = np.int(float(num)/float(rows)+.9)
for i in range(num):
    ax = fig.add_subplot(rows, cols, i+1)
    ax.hist(datasets[i][np.isfinite(datasets[i])], bins=60 )
    ax.set_xlabel(labels[i], size = 9)
    ax.set_ylabel('Counts', size = 9)
plt.show()

--
-----------------------------------------------------------------------
> Alan K. Jackson | To see a World in a Grain of Sand |
> alan@...895... | And a Heaven in a Wild Flower, |
> www.ajackson.org | Hold Infinity in the palm of your hand |
> Houston, Texas | And Eternity in an hour. - Blake |
-----------------------------------------------------------------------

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options

--
-----------------------------------------------------------------------

Alan K. Jackson | To see a World in a Grain of Sand |
alan@...895... | And a Heaven in a Wild Flower, |
www.ajackson.org | Hold Infinity in the palm of your hand |
Houston, Texas | And Eternity in an hour. - Blake |

-----------------------------------------------------------------------