Matplotlibでラベルの文字を大きくした場合にはみ出さないようにする

これは良く探すとMatplotlibのHowToに書いてあった. subbplots_adjustを使えば良い. ylabelがはみ出る場合は, 同様にしてleftを調整する.

import matplotlib.pylab as plt
fig = plt.figure()
fig.subplots_adjust(bottom=0.2)
ax = fig.add_subplot(111)

http://matplotlib.sourceforge.net/faq/howto_faq.html#move-the-edge-of-an-axes-to-make-room-for-tick-labels