Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2006
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2006

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

Search the Archive

Re: Combining ContourPlot and Plot

  • To: mathgroup at smc.vnet.net
  • Subject: [mg64589] Re: [mg64566] Combining ContourPlot and Plot
  • From: Pratik Desai <pdesai1 at umbc.edu>
  • Date: Thu, 23 Feb 2006 00:34:43 -0500 (EST)
  • References: <200602221058.FAA23540@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

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
>
>  
>
If you change the order of the plots it works fine

<< Graphics`Graphics`
plot1=Plot[x,{x,-1,1},PlotStyle->Hue[1]]
plot2=ContourPlot[x^2+y^2,{x,-1,1},{y,-1,1}]
DisplayTogether[plot2,plot1]
Show[plot2,plot1]

Hope this helps

Pratik


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