MathGroup Archive 2009

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

Search the Archive

Re: Can I plot y=f(x) and x=f(y) on the same chart?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg105521] Re: [mg105492] Can I plot y=f(x) and x=f(y) on the same chart?
  • From: Michael Young <michaelcharlesyoung at earthlink.net>
  • Date: Sun, 6 Dec 2009 01:32:05 -0500 (EST)
  • References: <200912051032.FAA08582@smc.vnet.net>

On Dec 5, 2009, at 5:32 AM, Tyler Shim wrote:

> I have two functions. Lets say one is y = 3x^5+7x^2-7 and the other is
> x = 2y^8-5y^7-y
>
> How can I plot them on the same chart?



Here you go, Cheers.

yasafunctionofx =
  ParametricPlot[
   {
    x,
    3 x^5 + 7 x^2 - 7
    },
   {x, -2, 2},
   PlotRange -> {{-8, 8}, {-8, 8}}
   ];


xasafunctionofy =
  ParametricPlot[
   {
    2 y^8 - 5 y^7 - y,
    y
    },
   {y, -2, 2},
   PlotRange -> {{-8, 8}, {-8, 8}}
   ];


Show[
  yasafunctionofx,
  xasafunctionofy
  ]



  • Prev by Date: Re: Replacing notebook symbols with colored text
  • Next by Date: Set correctly the Properties for print
  • Previous by thread: Re: Can I plot y=f(x) and x=f(y) on the same chart?
  • Next by thread: Re: Can I plot y=f(x) and x=f(y) on the same chart?