MathGroup Archive 2004

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

Search the Archive

Re: Overlay graphs

  • To: mathgroup at
  • Subject: [mg48858] Re: Overlay graphs
  • From: "Steve Luttrell" <steve_usenet at>
  • Date: Sat, 19 Jun 2004 04:31:13 -0400 (EDT)
  • References: <cau1ru$alc$>
  • Sender: owner-wri-mathgroup at

This does what you want:

gs = Plot[Sin[x], {x, 0, Pi/4}];
gc = Plot[Cos[x], {x, Pi/4, Pi/2}];
Show[gs, gc];

If you don't want to display the separate sine and cosine graphs then do

<< Graphics`Graphics`

Plot[Sin[x], {x, 0, Pi/4}],
Plot[Cos[x], {x, Pi/4, Pi/2}]

Steve Luttrell

"JosefG" <J_o_s_e_f at> wrote in message
news:cau1ru$alc$1 at
> I was wondering how to overlay graphs in Mathmatica. I need to
> overlay:         Plot[Sin{(x)},{x,0,Pi/4}] and
> Plot[{Cos(x)},{x,Pi/4,Pi/2}]. I don't know how to do it. A phase shift
> doesn't work because I need the data from the original points.
>  Thanks alot,
> Josef

  • Prev by Date: RE: Overlay graphs
  • Next by Date: Solve question
  • Previous by thread: RE: Overlay graphs
  • Next by thread: RE: Overlay graphs