When cax is an axes instance of the colorbar, you may use cax.tick_params(labelsize=8)
If you want to directly set the FontProperties, you need to iterate over the ticks (it seems that tick_params does not support this). for tick in cax.yaxis.majorTicks: tick.label2.set_fontproperties(fp) Note that the details depends on the current colorbar setup (orientation etc.). The bottom line is that cax can be treated as a normal axes. -JJ On Fri, Nov 19, 2010 at 9:30 AM, John <washa...@gmail.com> wrote: > Hello, > > I see that for a legend you can do the following: > > ax = plt.scatter(x,y,label='test data') > p_leg = mpl.font_manager.FontProperties(size='8') > ax.legend(prop=p_leg) > > But, how do you do set font properties for the colorbar tick labels? > > Thanks! > ------------------------------------------------------------------------------ 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/msIE9-sfdev2dev _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users