With the help of John Hunter and Stan West, I got some of my tick labels 
sizing correctly.  I have this chunk of code:

for label in self.main_axes.get_xticklabels():
    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)

The "sub ticks" are actually sub_axis ticks, sorry if the name confuses.

Anyway...the code to set the ytick label size is working just fine.  
However, the code to set the xtick labels is not changing the size of 
the labels, and it's still using the default.

The X axis (a date axis) has a major formatter of NullFormatter, A minor 
locator of HourLocator, and a minor formatter of DateFormatter.  As far 
as I know, Formatters don't mess with font size, they just return 
strings.

Where else can I look if the font settings aren't being honored for the 
xtick labels?

BTW, yes, I did read over the Artist docs, but what I found didn't 
answer my question.

Thanks!

-- 
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

Reply via email to