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 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users