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: [mg17676] Re:[mg17462] Simple Question: 2graphs in one?
  • From: mrazek_martin at my-dejanews.com
  • Date: Fri, 21 May 1999 23:58:57 -0400
  • Organization: Deja.com - Share what you know. Learn what you don't.
  • References: <7h5srl$h7m@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Hi,

I think I should spend more time with The Mathematica book too (and
probably also with studying English) but here is one shorter way for
combining graphs

Plot[ {f1(x),f2(x), ... , fn(x)}, {x,xmin,xmax}]

for Michael's values it means:

Plot[ {x^2, -x^2}, {x,-5,5}]


Martin


In article <7h5srl$h7m at smc.vnet.net>,
  "Tomas Garza" <tgarza at mail.internet.com.mx> wrote:
> 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
>
>


--== Sent via Deja.com http://www.deja.com/ ==--
---Share what you know. Learn what you don't.---


  • Prev by Date: Re: How invert x-axis in a plot?
  • Next by Date: Re: Draw straight line, but display zigzag line!
  • Previous by thread: Re: Simple Question: 2graphs in one?
  • Next by thread: Conversion to atomic units