Content-type: multipart/alternative; boundary="Boundary_(ID_3ha3aeUM4yUEUmWVbH3kkw)" --Boundary_(ID_3ha3aeUM4yUEUmWVbH3kkw) Content-type: text/plain; charset=UTF-8; format=flowed Content-transfer-encoding: QUOTED-PRINTABLE I introduced a bug when converting the code to make indices start at= =20 zero. This is fixed in the attachment. Phillip M. Feldman wrote: > I very much appreciate the help, but I still haven't been able to= =20 > figure out how to make this work. > > If I get one y-axis with the 'host', and each invocation of twinx a= dds=20 > another y-axis, then it seems that I must invoke twinx three times = to=20 > get four y-axes. Does twinx add more than one y-axis per invocatio= n? =20 > (The documentation that I've been able to find is ambiguous about t= his). > > Also, I've experimented with selectively setting colors of specific= =20 > spines, but have not been able to figure out which ones I should be= =20 > changing. > > My current code is attached. > > Phillip > > P.S. As per your suggestion, I've rewritten the code to follow the= =20 > Python list index convention. > > Jae-Joon Lee wrote: >> On Tue, Oct 27, 2009 at 11:12 PM, Dr. Phillip M. Feldman >> wrote: >> =20 >>> (1) Not only is the y-axis for dependent variable #1 blue (as it = should be), >>> but the entire frame around the plot is blue. >>> >>> =20 >> >> at line 158, you're changing the color of all spines. Change the c= olor >> of spine that you only want to change. >> >> =20 >>> (2) The y-axis for dependent variable #2 has two sets of tick lab= els. The >>> set in black contains the correct values in the correct positions= , but has >>> the wrong color. The other set of tick labels has the correct col= or (dark >>> red), but the values and locations are wrong. (In fact, these are= same >>> values and positions as for dependent variable #1). >>> =20 >> >> At line 113, you're creating 4 twinx axes, instead of 3, i.e, the >> figure has total of 5 axes. >> >> Also, I recommend you to use the pythonic convention that list ind= ex >> starts from 0. >> >> Regards, >> >> -JJ >> >> =20 > --Boundary_(ID_3ha3aeUM4yUEUmWVbH3kkw) Content-type: text/html; charset=UTF-8 Content-transfer-encoding: QUOTED-PRINTABLE I introduced a bug when converting the code to make indices start at zero.=C2=A0 This is fixed in the attachment.

Phillip M. Feldman wrote:
I very much appreciate the help, but I still haven't been able to figure out how to make this work.

If I get one y-axis with the 'host', and each invocation of twinx add= s another y-axis, then it seems that I must invoke twinx three times to get four y-axes.=C2=A0 Does twinx add more than one y-axis per invoca= tion?=C2=A0 (The documentation that I've been able to find is ambiguous about thi= s).

Also, I've experimented with selectively setting colors of specific spines, but have not been able to figure out which ones I should be changing.

My current code is attached.

Phillip

P.S. As per your suggestion, I've rewritten the code to follow the Python list index convention.

Jae-Joon Lee wrote:
On Tue, Oct 27, 2009 at 11:12 PM, Dr. Phillip M. F=
eldman
<pfeldman@verizon.net> wrote:
  
(1) Not only is the y-axis for dependent variabl=
e #1 blue (as it should be),
but the entire frame around the plot is blue.

    

at line 158, you're changing the color of all spines. Change the colo=
r
of spine that you only want to change.

  
(2) The y-axis for dependent variable #2 has two=
 sets of tick labels. The
set in black contains the correct values in the correct positions, bu=
t has
the wrong color. The other set of tick labels has the correct color (=
dark
red), but the values and locations are wrong. (In fact, these are sam=
e
values and positions as for dependent variable #1).
    

At line 113, you're creating 4 twinx axes, instead of 3, i.e, the
figure has total of 5 axes.

Also, I recommend you to use the pythonic convention that list index
starts from 0.

Regards,

-JJ

  


--Boundary_(ID_3ha3aeUM4yUEUmWVbH3kkw)--