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():
> 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():
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:
'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?
Part-Time System Admin/Programmer
PGP Key: http://pgp.mit.edu/ ID 0xDB26D7CE