MathGroup Archive 2006

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

Search the Archive

Re: Combining ContourPlot and Plot

  • To: mathgroup at smc.vnet.net
  • Subject: [mg64575] Re: Combining ContourPlot and Plot
  • From: dh <dh at metrohm.ch>
  • Date: Thu, 23 Feb 2006 00:34:09 -0500 (EST)
  • Organization: Cablecom Newsserver
  • References: <dthhr9$nis$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Hi James,
you have to take care what is drawn first. Obvioulsy the Plot is 
overwritten by ContourPlot. Simply reverse the plot commands:

Show[ContourPlot[x^2 + y^2, {x, -1, 1}, {y, -1, 1}], Plot[x, {x, -1, 1}]]

Daniel

dkjk at bigpond.net.au wrote:
> Hi group,
> 
> The title says it all really. I want something like
> 
> Show[Plot[x,{x,-1,1}],ContourPlot[x^2+y^2,{x,-1,1},{y,-1,1}]]
> 
> I've looked through the usenet archive to no avail.
> 
> Thanks in advance.
> 
> James
> 


  • Prev by Date: Re: Combining ContourPlot and Plot
  • Next by Date: Re: Combining ContourPlot and Plot
  • Previous by thread: Re: Combining ContourPlot and Plot
  • Next by thread: Re: Combining ContourPlot and Plot