From: Paul H. <pmh...@gm...> - 2013-05-31 01:43:04
|
On Thu, May 30, 2013 at 6:28 PM, Sudheer Joseph <sud...@ya...>wrote: > Dear Users, > Is there a way to set font size of error bar plot axis? I > tried below one but get error that "'ErrorbarContainer' object has no > attribute 'xaxis'" > any help?? > > ax=plt.errorbar(y,x,err,label='STDV') > plt.xlim(0,110) > for tick in ax.xaxis.get_major_ticks(): > tick.label.set_fontsize(14) > > Use ax.tick_params ( http://matplotlib.org/api/axes_api.html?highlight=tick_params#matplotlib.axes.Axes.tick_params ). Hope that helps, -paul |