MathGroup Archive 2006

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

Search the Archive

Re: Two independent y axes ?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg65358] Re: Two independent y axes ?
  • From: "Janko Slavic" <janko.slavic at gmail.com>
  • Date: Tue, 28 Mar 2006 04:05:25 -0500 (EST)
  • References: <e08kib$4a6$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Hi!

I guess there is a better way, but that works:
///////////////
fA[x_] := Sin[x];
fB[x_] := -3 + 5 Cos[x]
const := 5
figA = Plot[fA[x], {x, 0, p}, DisplayFunction -> Identity];
figB = Plot[fB[x]/const, {x, 0, p}, PlotStyle -> Hue[
    0], DisplayFunction -> Identity];
ticksB = Table[{i, IntegerPart[const i]}, {i, -2, 1, 0.2}];
Show[{figA, figB},
       Frame -> True, FrameTicks -> {Automatic,
        Automatic, None, ticksB}, DisplayFunction -> $DisplayFunction]


  • Prev by Date: StringForm bug?
  • Next by Date: Re: Two independent y axes ?
  • Previous by thread: Two independent y axes ?
  • Next by thread: Re: Two independent y axes ?