Re: Several Functions on the same graph
- To: mathgroup at yoda.physics.unc.edu
- Subject: Re: Several Functions on the same graph
- From: Peter Horan <peter at deakin.edu.au>
- Date: Mon, 11 Oct 93 13:50:08 +1000
From: FREI98 at wharton.upenn.edu Subject: Several Functions on the same graph To: mathgroup at yoda.physics.unc.edu Greetings. I am a bit of a novice with Mathematica (for the Mac) and am struggling to graph more than one function on a single display. Ideally I would like a 3-D environment but 2-D would suffice. Many Thanks, Frances Frei. This should be an FAQ. Use Show[g1, g2, g3, {option_list}] Where g1, g2 and g3 are graphics objects generated previously. Try In[1]:= Plot3D[Sin[x + y], {x, 0, 6}, {y, 0, 6}] Out[1]= -SurfaceGraphics- In[2]:= Plot3D[Cos[x - y], {x, 0, 6}, {y, 0, 6}] Out[2]= -SurfaceGraphics- In[3]:= Show [%1, %2] Out[3]= -Graphics3D- Peter Horan Department of Computing and Mathematics peter at deakin.edu.au Deakin University Geelong +61-52-27 1234 (Voice) Victoria 3217 +61-52-27 2028 (FAX) Australia