MathGroup Archive 1999

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

Search the Archive

Re: combining two plots

  • To: mathgroup at smc.vnet.net
  • Subject: [mg16772] Re: [mg16708] combining two plots
  • From: "Nik Semchenok" <nms at pobox.spbu.ru>
  • Date: Wed, 24 Mar 1999 02:24:10 -0500
  • References: <199903230333.WAA07275@smc.vnet.net.>
  • Sender: owner-wri-mathgroup at wolfram.com

>I'd like to draw in the same plot a function and some discrete 
>points. How can I combine the ListPlot and Plot comands in the same 
>figure? 

Hello!

In this case it is necessary to use a command Show.
p1=Plot[x^2,{x,-2,2}]
p2=ListPlot[Table[{i,Sin[i]},{i,-Pi,Pi,0.5}]]		

Show[p1,p2]

Nik



  • Prev by Date: I: Atan[(tan(x)^2+tan(y)^2)^0.5] - Numeric approximation
  • Next by Date: Re(2): Re: Commutators and Operator Powers in Mathematica
  • Previous by thread: combining two plots
  • Next by thread: Re: combining two plots