Re: Simple Question: 2graphs in one?
- To: mathgroup at smc.vnet.net
- Subject: [mg17489] Re: Simple Question: 2graphs in one?
- From: "Allan Hayes" <hay at haystack.demon.co.uk>
- Date: Mon, 10 May 1999 01:44:27 -0400
- References: <7h4ink$efo@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Michael Kalina <kalina at teleweb.at> wrote in message news:7h4ink$efo at smc.vnet.net... > > Hi! > > 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? > > Thanks, MK > Please send the answer as a message too (sometimes there are problems with > the News-Server) - Thanks > Michael Plot[{x^2,x^3}, {x, -5, 5}, PlotStyle-> {Hue[0], Hue[2/3]}] You can find out about things like this: ?Plot "Plot[f, {x, xmin, xmax}] generates a plot of f as a function of x from xmin \ to xmax. Plot[{f1, f2, ... }, {x, xmin, xmax}] plots several functions fi." Or by looking up Plot in the Help browser Allan --------------------- Allan Hayes Mathematica Training and Consulting Leicester UK www.haystack.demon.co.uk hay at haystack.demon.co.uk Voice: +44 (0)116 271 4198 Fax: +44 (0)870 164 0565