Re: [Matplotlib-users] twinx problem

2011-10-03 Thread Jae-Joon Lee
On Tue, Oct 4, 2011 at 4:22 AM, Christopher Brown wrote: >     tick.label1.set_color('red') > You should use tick.label2, not tick.label1. tick.label2.set_color('red') Anyhow, as Eric said, it is strongly advised to use the tick_params method. -JJ -

Re: [Matplotlib-users] twinx problem

2011-10-03 Thread Eric Firing
On 10/03/2011 09:22 AM, Christopher Brown wrote: > import matplotlib.pyplot as pp > fig = pp.figure() > ax1 = fig.add_subplot(111) > ax2 = ax1.twinx() > # works (tick labels are blue): > for tick in ax1.yaxis.get_major_ticks(): > tick.label1.set_color('blue') > # does not work (tick labels ar

Re: [Matplotlib-users] twinx problem

2011-10-03 Thread Benjamin Root
On Mon, Oct 3, 2011 at 2:22 PM, Christopher Brown wrote: > Hi, > > Im running mpl 1.01 from sf installer with py2.7 on windows xp. Can > anyone tell me what I am doing wrong in the following snippet: > > import matplotlib.pyplot as pp > fig = pp.figure() > ax1 = fig.add_subplot(111) > ax2 = ax1.t

[Matplotlib-users] twinx problem

2011-10-03 Thread Christopher Brown
Hi, Im running mpl 1.01 from sf installer with py2.7 on windows xp. Can anyone tell me what I am doing wrong in the following snippet: import matplotlib.pyplot as pp fig = pp.figure() ax1 = fig.add_subplot(111) ax2 = ax1.twinx() # works (tick labels are blue): for tick in ax1.yaxis.get_major_tic