On Tuesday 04 November 2008, Joshua J. Kugler said something like: > > Here is one way to do it:: > > > > for label in ax.get_xticklabels() + ax.get_yticklabels(): > > label.set_fontsize(12) > > > > But the artist tutorial above will give you a more in-depth > > explanation of the various containers and methods. > > Sigh...how simple. Thank you very much!
OK, so it's half working. :) I have code such as this: for label in self.main_axes.get_xticklabels(): tick.label.set_fontsize(self.xtick_labelsize) main_ticks = self.main_axes.get_yticklabels() sub_ticks = (self.sub_axes.get_yticklabels() if hasattr(self.sub_axes, 'get_yticklabels') else []) for label in main_ticks + sub_ticks: label.set_fontsize(self.ytick_labelsize) 'self' is an object that gets turned in to a plot on a figure. the sub_axes are because we have centigrade on one end of the plot, and Fahrenheit on the other end. The yticklabel code works fine. The xticklabel code has no effect. The X axis is an AutoDateLocator and apparently set_fontsize isn't having an effect with that. I tried setting the font size even after setting the locator, and that doesn't appear to have any effect. Can you point me to the relevant docs on the subject? :) Thanks! j -- Joshua Kugler Part-Time System Admin/Programmer http://www.eeinternet.com PGP Key: http://pgp.mit.edu/ ID 0xDB26D7CE ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users