Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2004
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2004

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

Search the Archive

Re: Overlay graphs

  • To: mathgroup at smc.vnet.net
  • Subject: [mg48858] Re: Overlay graphs
  • From: "Steve Luttrell" <steve_usenet at _removemefirst_luttrell.org.uk>
  • Date: Sat, 19 Jun 2004 04:31:13 -0400 (EDT)
  • References: <cau1ru$alc$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

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
this:

<< Graphics`Graphics`

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

Steve Luttrell

"JosefG" <J_o_s_e_f at hotmail.com> wrote in message
news:cau1ru$alc$1 at smc.vnet.net...
> 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