Content-type: multipart/alternative; boundary="Boundary_(ID_097jH1HRJjrtH6Ln4dAKRw)" --Boundary_(ID_097jH1HRJjrtH6Ln4dAKRw) Content-type: text/plain; charset=UTF-8; format=flowed Content-transfer-encoding: QUOTED-PRINTABLE Jae-Joon and Gokhan- Thanks very much to both of you for the help with this! I've been trying to create a template plotting program for the studen= ts=20 in the Engineering Academy at Dos Pueblos High School. This program = has=20 to be able to create plots with 2, 3, or 4 y axes. The idea is that = the=20 students would only have to insert their data into the code and chang= e=20 the variable names to be able to generate plots. I've created someth= ing=20 that does almost exactly what they need, except that there is glitch= =20 that I have not been able to fix. In the attached plot, not that the= =20 tick marks and labels for the first y axis appear on both the right a= nd=20 the left. I have tried various things, but have not been able to= =20 suppress the copy on the right without also suppressing the ones on t= he=20 left. Any suggestions will be appreciated. Phillip Jae-Joon Lee wrote: > Using axes_grid toolkit is not recommended unless you're familiar w= ith > some of the internals of matplotlib. Instead, you should use spines= . > While the current example gallery does not have such an example, I > just added one in the svn. > The result should be identical to the axes_grid example. While not > tested, I believe the example will work fine with matplotlib 0.99.1= . > > http://matplotlib.svn.sourceforge.net/viewvc/matplotlib/trunk/matpl= otlib/examples/pylab_examples/multiple_yaxis_with_spines.py?revision= =3D7908&view=3Dmarkup > > Regards, > > -JJ > > > On Sat, Oct 24, 2009 at 2:40 PM, G=C3=B6khan Sever wrote: > =20 >> On Sat, Oct 24, 2009 at 1:02 PM, Dr. Phillip M. Feldman >> wrote: >> =20 >>> I'd like to create a plot showing motor current, efficiency, spee= d, and >>> output power versus input power, with all four curves on a single= plot and >>> four y axes. I've looked at the example in >>> http://matplotlib.sourceforge.net/examples/api/two_scales.html, a= nd also >>> at >>> the doc string for twinx. It looks as though twinx will let me cr= eate two >>> y >>> axes, but in this case I need four. Can this be done with matplot= lib? >>> -- >>> View this message in context: >>> http://www.nabble.com/Possible-to-get-four-y-axes-on-a-single-plo= t--tp26041500p26041500.html >>> Sent from the matplotlib - users mailing list archive at Nabble.c= om. >>> >>> >>> =20 >> Using axes_grid you can get multiple y-axes. See for example: >> >> http://matplotlib.sourceforge.net/examples/axes_grid/demo_parasite= _axes2.html >> >> >> >> =20 >>> -----------------------------------------------------------------= ------------- >>> Come build with us! The BlackBerry(R) Developer Conference in SF,= CA >>> is the only developer event you need to attend this year. Jumpsta= rt your >>> developing skills, take BlackBerry mobile applications to market = and stay >>> ahead of the curve. Join us from November 9 - 12, 2009. Register = now! >>> http://p.sf.net/sfu/devconference >>> _______________________________________________ >>> Matplotlib-users mailing list >>> Matplotlib-users@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >>> =20 >> >> -- >> G=C3=B6khan >> >> ------------------------------------------------------------------= ------------ >> Come build with us! The BlackBerry(R) Developer Conference in SF, = CA >> is the only developer event you need to attend this year. Jumpstar= t your >> developing skills, take BlackBerry mobile applications to market a= nd stay >> ahead of the curve. Join us from November 9 - 12, 2009. Register n= ow! >> http://p.sf.net/sfu/devconference >> _______________________________________________ >> Matplotlib-users mailing list >> Matplotlib-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> >> >> =20 > > =20 --Boundary_(ID_097jH1HRJjrtH6Ln4dAKRw) Content-type: text/html; charset=UTF-8 Content-transfer-encoding: QUOTED-PRINTABLE Jae-Joon and Gokhan-

Thanks very much to both of you for the help with this!

I've been trying to create a template plotting program for the studen= ts in the Engineering Academy at Dos Pueblos High School.=C2=A0 This pro= gram has to be able to create plots with 2, 3, or 4 y axes.=C2=A0 The idea= is that the students would only have to insert their data into the code and change the variable names to be able to generate plots.=C2=A0 I'v= e created something that does almost exactly what they need, except tha= t there is glitch that I have not been able to fix.=C2=A0 In the attach= ed plot, not that the tick marks and labels for the first y axis appear = on both the right and the left.=C2=A0 I have tried various things, but h= ave not been able to suppress the copy on the right without also suppressing the ones on the left.=C2=A0 Any suggestions will be appreciated.

Phillip

Jae-Joon Lee wrote:
Using axes_grid toolkit is not recommended unless yo=
u're familiar with
some of the internals of matplotlib. Instead, you should use spines.
While the current example gallery does not have such an example, I
just added one in the svn.
The result should be identical to the axes_grid example. While not
tested, I believe the example will work fine with matplotlib 0.99.1.

http:/=
/matplotlib.svn.sourceforge.net/viewvc/matplotlib/trunk/matplotlib/ex=
amples/pylab_examples/multiple_yaxis_with_spines.py?revision=3D7908&a=
mp;view=3Dmarkup

Regards,

-JJ


On Sat, Oct 24, 2009 at 2:40 PM, G=C3=B6khan Sever <gokhanseve=
r@gmail.com> wrote:
  
On Sat, Oct 24, 2009 at 1:02 PM, Dr. Phillip M. Feldman
<pfeldman@verizon.net> wrote:
    
I'd like to create a plot showing motor current,=
 efficiency, speed, and
output power versus input power, with all four curves on a single plo=
t and
four y axes. I've looked at the example in
http://matplotlib.sourceforge.n=
et/examples/api/two_scales.html, and also
at
the doc string for twinx. It looks as though twinx will let me create=
 two
y
axes, but in this case I need four. Can this be done with matplotlib?
--
View this message in context:
h=
ttp://www.nabble.com/Possible-to-get-four-y-axes-on-a-single-plot--tp=
26041500p26041500.html
Sent from the matplotlib - users mailing list archive at Nabble.com.


      
Using axes_grid you can get multiple y-axes. See f=
or example:

http://matplotli=
b.sourceforge.net/examples/axes_grid/demo_parasite_axes2.html



    
---------------------------------------------------------------------=
---------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart y=
our
developing skills, take BlackBerry mobile applications to market and =
stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/li=
sts/listinfo/matplotlib-users
      

--
G=C3=B6khan

---------------------------------------------------------------------=
---------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart y=
our
developing skills, take BlackBerry mobile applications to market and =
stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/li=
sts/listinfo/matplotlib-users


    

  

--Boundary_(ID_097jH1HRJjrtH6Ln4dAKRw)--