MathGroup Archive 1999

[Date Index] [Thread Index] [Author Index]

Search the Archive

[Q] Graphics with 2 Y-axis

  • To: mathgroup at smc.vnet.net
  • Subject: [mg18372] [Q] Graphics with 2 Y-axis
  • From: Dan Truong <dtruong at irisa.fr>
  • Date: Wed, 30 Jun 1999 14:13:33 -0400
  • Organization: IRISA, FRANCE
  • Sender: owner-wri-mathgroup at wolfram.com

How can one make a graphic with 2 Y-axis, either to
show 2 curves holding different value ranges or the same
curve using 2 scales (typically, percents and real value)

Something like this:

40 % -| ...          |- 20000
      |    .  ..     |- 15000
20 % -|     ..  .    |- 10000
      |          ... |- 5000
      ----------------
      |  |  |  |  |  |
      1  2  3  4  5  6

I want to do this on barcharts, filledlistplots, listplots
and on 3D listplots. If it could be done automatically or if
someone had a model it would be nice.

Here is my attempt:

	momo = ListPlot[{1,2,3,4,1}
		, Frame-> True
		, FrameLabel ->{"B","L","T","R"}
		, FrameTicks -> {Automatic, Automatic, 
       
Table[{i,N[(16-11)*i/(5-1)+11]},{i,1,5}],{{1,"A"},{2,two},{4,"b"}}}
	]

Problem: The 2 parallel axis keep the same tick factor (ticks are
aligned),
wich make for non-round vaules to be displayed on second axis.

Dan-


  • Prev by Date: Updating hyperlinks after splitting a notebook
  • Next by Date: Re: Re: Mathematica 2.2 on iMac?
  • Previous by thread: Updating hyperlinks after splitting a notebook
  • Next by thread: Krull dimension