|
From: Fabien L. <laf...@gm...> - 2012-08-30 16:53:35
|
Hi,
But how can I do it for every graph and without creating axis?
I've seen this example:
import numpy as npimport matplotlib.pyplot as plt
# plt.figure creates a matplotlib.figure.Figure instancefig =
plt.figure()rect = fig.patch # a rectangle
instancerect.set_facecolor('lightgoldenrodyellow')
ax1 = fig.add_axes([0.1, 0.3, 0.4, 0.4])rect =
ax1.patchrect.set_facecolor('lightslategray')
for label in ax1.xaxis.get_ticklabels():
# label is a Text instance
label.set_color('red')
label.set_rotation(45)
label.set_fontsize(16)
I don't manage to use only label.set_fontsize(16). It looks so
complicated.
2012/8/30 Benjamin Root <ben...@ou...>
>
>
> 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.
>
> Cheers!
> Ben Root
>
>
|