|
From: Friedrich H. <fri...@gm...> - 2008-05-22 15:04:13
|
On Thu, May 22, 2008 at 02:30:24PM +0000, Chiara Caronna wrote:
> Hello,
> I would like to change the color of the yticklabels. I tried to use this
> command:
>
> ax1=p.subplot(212)
[...]
> ax1.set_yticklabels(color='r')
* Solution 1:
In [1]: ax1=subplot(111)
In [2]: setp(ax1.get_yaxis().get_major_ticklabels(), color='r')
* Solution 2:
In [1]: ax1=subplot(111)
In [2]: for label in ax1.get_yaxis().get_majorticklabels():
...: label.set_color('r')
...:
...:
In [3]: draw()
May be there is a shorter solution but I dont know of it :-)
By, Friedrich
|