|
From: Fabien L. <laf...@gm...> - 2012-08-30 17:06:25
|
I've tried also but it returns an error:
matplotlib.rcParams['xticks.labelsize'] = 12.0
File "C:\Python27\lib\site-packages\matplotlib\__init__.py", line 653, in
__setitem__
See rcParams.keys() for a list of valid parameters.' % (key,))
KeyError: 'xticks.labelsize is not a valid rc parameter.See rcParams.keys()
for a list of valid parameters.'
2012/8/30 Damon McDougall <dam...@gm...>
> On Thu, Aug 30, 2012 at 12:04:48PM -0400, Benjamin Root wrote:
> > On Thu, Aug 30, 2012 at 11:58 AM, Fabien Lafont <laf...@gm...
> >wrote:
> >
> > > There is no effect...
> > >
> > >
> > > 2012/8/30 Damon McDougall <dam...@gm...>
> > >
> > >> On Thu, Aug 30, 2012 at 05:50:18PM +0200, Fabien Lafont wrote:
> > >> > Hello,
> > >> >
> > >> > Do you know to change the size of the numbers under the axis?
> > >> >
> > >>
> > >> import matplotlib
> > >> matplotlib.rcParams['axes.labelsize'] = 12.0
> > >>
> > >> Hope this helps.
> > >>
> > >>
> > You want to modify "xtick.labelsize" or "ytick.labelsize". By default,
> > they are "medium", but you can use a number for it as well.
> > "axes.labelsize" effects the axes labels, not the labels for the ticks.
> >
>
> Thanks for that, Ben. Apologies if I caused confusion.
>
> --
> Damon McDougall
> http://www.damon-is-a-geek.com
> B2.39
> Mathematics Institute
> University of Warwick
> Coventry
> West Midlands
> CV4 7AL
> United Kingdom
>
|