MathGroup Archive 2006

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

Search the Archive

Re: Combining ContourPlot and Plot


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