From: Jouni K. S. <jk...@ik...> - 2009-08-20 18:31:21
|
Daniel Platz <mai...@go...> writes: > t = cb4.ax.get_xticklabels() > for j in t: > j.set_text(r'$\pi$') > j.set_fontsize(10) > j.set_family('serif') Try cb4.ax.set_xticklabels([r'$-\pi$', ...]); draw() > Another problem is that I want to adjust the fontsize of the colorbar > ticklabels on four subplots. This only works for the last two subplots > with the syntax shown above. The same syntax has no effect on the first > two subplots. You should be able to pass font properties to set_xticklabels. If that doesn't work, please post a complete example. -- Jouni K. Seppänen http://www.iki.fi/jks |