|
From: Alan J. <al...@aj...> - 2009-02-08 20:17:08
|
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 |
| al...@aj... | 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 |
-----------------------------------------------------------------------
|