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
]
- References:
- Can I plot y=f(x) and x=f(y) on the same chart?
- From: Tyler Shim <tyler.shim@gmail.com>
- Can I plot y=f(x) and x=f(y) on the same chart?