MathGroup Archive 1999

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

Search the Archive

Re:Simple Question: 2graphs in one?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg17500] Re:[mg17462] Simple Question: 2graphs in one?
  • From: "Tomas Garza" <tgarza at mail.internet.com.mx>
  • Date: Mon, 10 May 1999 01:44:33 -0400
  • Sender: owner-wri-mathgroup at wolfram.com

Michael Kalina [kalina at teleweb.at] wrote:

>Can anybody tell me how I can plot 2 graphs (e.g. x^2 AND -x^3) in ONE
> graphic-output?
>
> I only know: Plot[x^2, {x, -5, 5}] ... but how to add a second graph?

Hi Michael!

In[1]:=
gr1=Plot[x^2, {x, -5, 5},DisplayFunction->Identity];
In[2]:=
gr2=Plot[-x^3, {x, -5, 5},DisplayFunction->Identity];
In[3]:=
Show[gr1,gr2,DisplayFunction->$DisplayFunction]

Good luck (and, by the way, you should spend some time reading The Book or
any other of the many excellent introductory texts on Mathematica),

Tomas Garza
Mexico City



  • Prev by Date: Re: Why Round[5/2]=2?
  • Next by Date: Re: Complex Plot
  • Previous by thread: Simple Question: 2graphs in one?
  • Next by thread: Re: Simple Question: 2graphs in one?