With the current svn, the code works as expected. So, I guess this is an issue that has been fixed.
Can you try something like below and see if this works? for tck in ax2.get_yticklabels(): tck.set_fontsize(34) Regards, -JJ On Wed, Oct 6, 2010 at 9:50 AM, Michael Lenander <jerboa...@gmail.com> wrote: > > I'm making a plot with two y axes. When I resize the font on the tick > labels for the second axis, nothing happens. The same code however works > fine for the first set of axes. > > fig = figure() > ax1 = fig.add_subplot(111) > plot(bias,gamma1,'k.',markersize=mrkrsize) > ax1.set_ylim([0,10]) > ax1.set_yticks([0,5,10]) > ax1.set_yticklabels([0,5,10],fontsize=34) #Correctly sets tick label > font size > > ax2 = ax1.twinx() > plot(bias,f,'k.',markersize=mrkrsize) > ax2.set_yticks([0,-2,-4,-6]) > ax2.set_yticklabels([0,-2,-4,-6],fontsize=34) #Remains default size, no > error message > > As far as I can tell this really should work, unless there is something > about twinx I don't understand. Any insight would be appreciated. > -- > View this message in context: > http://old.nabble.com/Problem-with-set_yticklabels-tp29892687p29892687.html > Sent from the matplotlib - users mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > 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 > ------------------------------------------------------------------------------ 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