MathGroup Archive 2001

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

Search the Archive

Re: two y-axis


You might be able to do something with Ticks or FrameTicks.  Here is a
rather crude example

Plot[{Sin[x], Cos[x]}, {x, 0, 2 Pi}, Frame -> True, 
  PlotStyle -> {Hue[0.2], Hue[0.8]}, 
  FrameTicks -> {Automatic, 
      Table[{x, StyleForm[ToString[4x - 1], FontColor -> Hue[0.2]], 
          0.01, {Hue[0.2]}}, {x, -1, 1, 0.25}], None, 
      Table[{x, StyleForm[ToString[(x + 1)/2], FontColor -> Hue[0.8]], 
          0.01, {Hue[0.8]}}, {x, -1, 1, 0.4}]}]

Erich

On 16 Feb 2001, Bernd Brandt wrote:

> Dear group,
> 
> Does anyone have code or know how to plot two functions in Mathematica, each on
> a different y-axis. I haven't found whether it is possible to use to
> y-axes in Plot. 
> 
> 
> 
> Regards,
> Bernd
> 
> 


  • Prev by Date: Re: Q: How to plot field lines?
  • Next by Date: SubsetQ challenge
  • Previous by thread: Re: two y-axis
  • Next by thread: Re: two y-axis