Eric,

ax = subplot(111)
ax.tick_params(labelsize='x-small')
print ax.xaxis.majorTicks[0]._size

it sets Tick._size instead of Tick._labelsize, which seems to be a bug.

I think the below patch fixes this. Can you check (and commit if correct)?

Regards,

-JJ


diff --git a/lib/matplotlib/axis.py b/lib/matplotlib/axis.py
index 585c1a2..05e7bec 100644
--- a/lib/matplotlib/axis.py
+++ b/lib/matplotlib/axis.py
@@ -299,7 +299,7 @@ class Tick(artist.Artist):
             label_kw = dict([(k[5:], v) for (k, v) in label_list])
             self.label1.set(**label_kw)
             self.label2.set(**label_kw)
-            for k, v in label_kw.items():
+            for k, v in label_list:
                 setattr(self, '_'+k, v)





On Sat, Oct 9, 2010 at 12:10 PM, Jae-Joon Lee <lee.j.j...@gmail.com> wrote:
> The label_mode need to be capital "L", instead of "l". I guess this
> will fix your first problem.
> While we make "l" same as "L", but I think it actually degrade the
> readability of the code, and I;m inclined to leave it as is. Let me
> know if you have any suggestions though.
>
> On Sat, Oct 9, 2010 at 5:43 AM, Justin McCann <jne...@gmail.com> wrote:
>> # Let's try explicitly setting all of the xtick sizes. Kablooie.
>> for ax in grid.axes_all:
>>     ax.tick_params(direction='out', labelsize='x-small')
>>
>
> The second one is not actually related with axes_grid1 toolkit. The
> error can be reproduced with the code below.
>
> ax = subplot(111)
> ax.tick_params(direction='out', labelsize='x-small')
> ax.tick_params(direction='out', labelsize='x-small')
>
> The 1st tick_params is okay, but the 2nd one raises an error.
> I'll take a look into it soon. Meanwhile, you may use a numeric
> argument for the labelsize.
>
> Regards,
>
> -JJ
>

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to