Use ContourPlot data in ParametricPlotContourPlot from Vector DataContourPlot with parameterUsing Show to place a ParametricPlot on a LogLog scaleScale coloring of ContourPlotContourPlot gives wrong outputLogLogPLot with two left&right axesHow to set the region of variable in the ParametricPlot?ParametricPlot not plotting resultsParametricPlot with more than two parametersParametricPlot table of complex functions in several graphs
Why did Robert F. Kennedy loathe Lyndon B. Johnson?
Is conquering your neighbors to fight a greater enemy a valid strategy?
Was the 45.9°C temperature in France in June 2019 the highest ever recorded in France?
Who goes first? Person disembarking bus or the bicycle?
Can a USB hub be used to access a drive from two devices?
E12 LED light bulb flickers when OFF in candelabra
Four ships at the ocean with the same distance
My professor has told me he will be the corresponding author. Will it hurt my future career?
Tesco's Burger Relish Best Before End date number
What are the effects of abstaining from eating a certain flavor?
Can we share mixing jug/beaker for developer, fixer and stop bath?
Why am I getting unevenly-spread results when using $RANDOM?
What is this burst transmission sequence across the entire band?
Can one block with a protection from color creature?
How to evaluate the performance of open source solver?
Jimmy needs your help!
Sorting a list according to some pre-specified rules
Why did the frequency of the word "черт" (devil) in books increase by a few times since the October Revolution?
How do I talk to my wife about unrealistic expectations?
Is it ok for parents to kiss and romance with each other while their 2- to 8-year-old child watches?
Taking my Ph.D. advisor out for dinner after graduation
What does "spinning upon the shoals" mean?
I'm feeling like my character doesn't fit the campaign
Diagram with cylinder shapes and rectangles
Use ContourPlot data in ParametricPlot
ContourPlot from Vector DataContourPlot with parameterUsing Show to place a ParametricPlot on a LogLog scaleScale coloring of ContourPlotContourPlot gives wrong outputLogLogPLot with two left&right axesHow to set the region of variable in the ParametricPlot?ParametricPlot not plotting resultsParametricPlot with more than two parametersParametricPlot table of complex functions in several graphs
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
$begingroup$
Let me give an example,
probe1 = ContourPlot[10 == x + y, x, 0, 10, y, 0, 10, Frame -> True, FrameLabel -> "x", "y"]
This plots 10=f[x,y]=x+y
, for a set of point (x,y)
that solved the equality. Moreover,
probe2 = ParametricPlot[x y, x^2 + y^2, x, 0, 10, y, 0, 10]
where g=g[x,y]=xy
and h=h[x,y]=x^2+y^2
, plots h=h[g[x,y]]
. What I want is to plot only the case in which x+y=10
. What should I do?
plotting parametric-functions
$endgroup$
add a comment |
$begingroup$
Let me give an example,
probe1 = ContourPlot[10 == x + y, x, 0, 10, y, 0, 10, Frame -> True, FrameLabel -> "x", "y"]
This plots 10=f[x,y]=x+y
, for a set of point (x,y)
that solved the equality. Moreover,
probe2 = ParametricPlot[x y, x^2 + y^2, x, 0, 10, y, 0, 10]
where g=g[x,y]=xy
and h=h[x,y]=x^2+y^2
, plots h=h[g[x,y]]
. What I want is to plot only the case in which x+y=10
. What should I do?
plotting parametric-functions
$endgroup$
2
$begingroup$
How about a parametric regionRegion[ParametricRegion[x y, x^2 + y^2, x + y == 10, x, 0, 10, y, 0, 10], Frame -> True]
$endgroup$
– Simon Woods
7 hours ago
add a comment |
$begingroup$
Let me give an example,
probe1 = ContourPlot[10 == x + y, x, 0, 10, y, 0, 10, Frame -> True, FrameLabel -> "x", "y"]
This plots 10=f[x,y]=x+y
, for a set of point (x,y)
that solved the equality. Moreover,
probe2 = ParametricPlot[x y, x^2 + y^2, x, 0, 10, y, 0, 10]
where g=g[x,y]=xy
and h=h[x,y]=x^2+y^2
, plots h=h[g[x,y]]
. What I want is to plot only the case in which x+y=10
. What should I do?
plotting parametric-functions
$endgroup$
Let me give an example,
probe1 = ContourPlot[10 == x + y, x, 0, 10, y, 0, 10, Frame -> True, FrameLabel -> "x", "y"]
This plots 10=f[x,y]=x+y
, for a set of point (x,y)
that solved the equality. Moreover,
probe2 = ParametricPlot[x y, x^2 + y^2, x, 0, 10, y, 0, 10]
where g=g[x,y]=xy
and h=h[x,y]=x^2+y^2
, plots h=h[g[x,y]]
. What I want is to plot only the case in which x+y=10
. What should I do?
plotting parametric-functions
plotting parametric-functions
asked 9 hours ago
Patrick El PolloPatrick El Pollo
19610 bronze badges
19610 bronze badges
2
$begingroup$
How about a parametric regionRegion[ParametricRegion[x y, x^2 + y^2, x + y == 10, x, 0, 10, y, 0, 10], Frame -> True]
$endgroup$
– Simon Woods
7 hours ago
add a comment |
2
$begingroup$
How about a parametric regionRegion[ParametricRegion[x y, x^2 + y^2, x + y == 10, x, 0, 10, y, 0, 10], Frame -> True]
$endgroup$
– Simon Woods
7 hours ago
2
2
$begingroup$
How about a parametric region
Region[ParametricRegion[x y, x^2 + y^2, x + y == 10, x, 0, 10, y, 0, 10], Frame -> True]
$endgroup$
– Simon Woods
7 hours ago
$begingroup$
How about a parametric region
Region[ParametricRegion[x y, x^2 + y^2, x + y == 10, x, 0, 10, y, 0, 10], Frame -> True]
$endgroup$
– Simon Woods
7 hours ago
add a comment |
2 Answers
2
active
oldest
votes
$begingroup$
You can use the argument of ContourPlot
as the MeshFunctions
option value in ParametricPlot
as follows:
ParametricPlot[u t, u^2 + t^2, u, 0, 10, t, 0, 10,
MeshFunctions -> Function[x, y, u, t, u + t - 10],
Mesh -> 0,
MeshStyle -> Directive[Red, Thick]]
$endgroup$
$begingroup$
It worked. Thanks. Do you have a sugestion to include in the sameParametricPlot
several cases of the condition, for exampleu+v-2
andu+v-5
, etc? What should I change in your solution?
$endgroup$
– Patrick El Pollo
16 mins ago
$begingroup$
@PatrickElPollo, tryParametricPlot[u t, u^2 + t^2, u, 0, 10, t, 0, 10, MeshFunctions -> Function[x, y, u, t, u + t], Mesh -> 9, Directive[Red, Opacity[1], Thick], 10, Directive[Green, Opacity[1], Thick], 12, Directive[Black, Opacity[1], Thick]]
$endgroup$
– kglr
3 mins ago
add a comment |
$begingroup$
This may be what you want
Clear["Global`*"]
eqn = 10 == x + y;
ysol[x_] = y /. Solve[eqn, y][[1]]
(* 10 - x *)
Show[
ParametricPlot[
x y, x^2 + y^2,
x, 0, 10, y, 0, 10],
ParametricPlot[
Evaluate[x y, x^2 + y^2 /. y -> ysol[x]],
x, 0, 10,
PlotStyle -> Red]]
$endgroup$
$begingroup$
it works, but what I want is a way to extract the pairs fromContourPlot
whenSolve
does not work to use them as parameters inParametricPlot
.
$endgroup$
– Patrick El Pollo
8 hours ago
$begingroup$
@PatrickElPollo - have you tried using a numeric solver such asNSolve
orFindRoot
?
$endgroup$
– Bob Hanlon
4 hours ago
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "387"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f201627%2fuse-contourplot-data-in-parametricplot%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
You can use the argument of ContourPlot
as the MeshFunctions
option value in ParametricPlot
as follows:
ParametricPlot[u t, u^2 + t^2, u, 0, 10, t, 0, 10,
MeshFunctions -> Function[x, y, u, t, u + t - 10],
Mesh -> 0,
MeshStyle -> Directive[Red, Thick]]
$endgroup$
$begingroup$
It worked. Thanks. Do you have a sugestion to include in the sameParametricPlot
several cases of the condition, for exampleu+v-2
andu+v-5
, etc? What should I change in your solution?
$endgroup$
– Patrick El Pollo
16 mins ago
$begingroup$
@PatrickElPollo, tryParametricPlot[u t, u^2 + t^2, u, 0, 10, t, 0, 10, MeshFunctions -> Function[x, y, u, t, u + t], Mesh -> 9, Directive[Red, Opacity[1], Thick], 10, Directive[Green, Opacity[1], Thick], 12, Directive[Black, Opacity[1], Thick]]
$endgroup$
– kglr
3 mins ago
add a comment |
$begingroup$
You can use the argument of ContourPlot
as the MeshFunctions
option value in ParametricPlot
as follows:
ParametricPlot[u t, u^2 + t^2, u, 0, 10, t, 0, 10,
MeshFunctions -> Function[x, y, u, t, u + t - 10],
Mesh -> 0,
MeshStyle -> Directive[Red, Thick]]
$endgroup$
$begingroup$
It worked. Thanks. Do you have a sugestion to include in the sameParametricPlot
several cases of the condition, for exampleu+v-2
andu+v-5
, etc? What should I change in your solution?
$endgroup$
– Patrick El Pollo
16 mins ago
$begingroup$
@PatrickElPollo, tryParametricPlot[u t, u^2 + t^2, u, 0, 10, t, 0, 10, MeshFunctions -> Function[x, y, u, t, u + t], Mesh -> 9, Directive[Red, Opacity[1], Thick], 10, Directive[Green, Opacity[1], Thick], 12, Directive[Black, Opacity[1], Thick]]
$endgroup$
– kglr
3 mins ago
add a comment |
$begingroup$
You can use the argument of ContourPlot
as the MeshFunctions
option value in ParametricPlot
as follows:
ParametricPlot[u t, u^2 + t^2, u, 0, 10, t, 0, 10,
MeshFunctions -> Function[x, y, u, t, u + t - 10],
Mesh -> 0,
MeshStyle -> Directive[Red, Thick]]
$endgroup$
You can use the argument of ContourPlot
as the MeshFunctions
option value in ParametricPlot
as follows:
ParametricPlot[u t, u^2 + t^2, u, 0, 10, t, 0, 10,
MeshFunctions -> Function[x, y, u, t, u + t - 10],
Mesh -> 0,
MeshStyle -> Directive[Red, Thick]]
answered 3 hours ago
kglrkglr
203k10 gold badges232 silver badges462 bronze badges
203k10 gold badges232 silver badges462 bronze badges
$begingroup$
It worked. Thanks. Do you have a sugestion to include in the sameParametricPlot
several cases of the condition, for exampleu+v-2
andu+v-5
, etc? What should I change in your solution?
$endgroup$
– Patrick El Pollo
16 mins ago
$begingroup$
@PatrickElPollo, tryParametricPlot[u t, u^2 + t^2, u, 0, 10, t, 0, 10, MeshFunctions -> Function[x, y, u, t, u + t], Mesh -> 9, Directive[Red, Opacity[1], Thick], 10, Directive[Green, Opacity[1], Thick], 12, Directive[Black, Opacity[1], Thick]]
$endgroup$
– kglr
3 mins ago
add a comment |
$begingroup$
It worked. Thanks. Do you have a sugestion to include in the sameParametricPlot
several cases of the condition, for exampleu+v-2
andu+v-5
, etc? What should I change in your solution?
$endgroup$
– Patrick El Pollo
16 mins ago
$begingroup$
@PatrickElPollo, tryParametricPlot[u t, u^2 + t^2, u, 0, 10, t, 0, 10, MeshFunctions -> Function[x, y, u, t, u + t], Mesh -> 9, Directive[Red, Opacity[1], Thick], 10, Directive[Green, Opacity[1], Thick], 12, Directive[Black, Opacity[1], Thick]]
$endgroup$
– kglr
3 mins ago
$begingroup$
It worked. Thanks. Do you have a sugestion to include in the same
ParametricPlot
several cases of the condition, for example u+v-2
and u+v-5
, etc? What should I change in your solution?$endgroup$
– Patrick El Pollo
16 mins ago
$begingroup$
It worked. Thanks. Do you have a sugestion to include in the same
ParametricPlot
several cases of the condition, for example u+v-2
and u+v-5
, etc? What should I change in your solution?$endgroup$
– Patrick El Pollo
16 mins ago
$begingroup$
@PatrickElPollo, try
ParametricPlot[u t, u^2 + t^2, u, 0, 10, t, 0, 10, MeshFunctions -> Function[x, y, u, t, u + t], Mesh -> 9, Directive[Red, Opacity[1], Thick], 10, Directive[Green, Opacity[1], Thick], 12, Directive[Black, Opacity[1], Thick]]
$endgroup$
– kglr
3 mins ago
$begingroup$
@PatrickElPollo, try
ParametricPlot[u t, u^2 + t^2, u, 0, 10, t, 0, 10, MeshFunctions -> Function[x, y, u, t, u + t], Mesh -> 9, Directive[Red, Opacity[1], Thick], 10, Directive[Green, Opacity[1], Thick], 12, Directive[Black, Opacity[1], Thick]]
$endgroup$
– kglr
3 mins ago
add a comment |
$begingroup$
This may be what you want
Clear["Global`*"]
eqn = 10 == x + y;
ysol[x_] = y /. Solve[eqn, y][[1]]
(* 10 - x *)
Show[
ParametricPlot[
x y, x^2 + y^2,
x, 0, 10, y, 0, 10],
ParametricPlot[
Evaluate[x y, x^2 + y^2 /. y -> ysol[x]],
x, 0, 10,
PlotStyle -> Red]]
$endgroup$
$begingroup$
it works, but what I want is a way to extract the pairs fromContourPlot
whenSolve
does not work to use them as parameters inParametricPlot
.
$endgroup$
– Patrick El Pollo
8 hours ago
$begingroup$
@PatrickElPollo - have you tried using a numeric solver such asNSolve
orFindRoot
?
$endgroup$
– Bob Hanlon
4 hours ago
add a comment |
$begingroup$
This may be what you want
Clear["Global`*"]
eqn = 10 == x + y;
ysol[x_] = y /. Solve[eqn, y][[1]]
(* 10 - x *)
Show[
ParametricPlot[
x y, x^2 + y^2,
x, 0, 10, y, 0, 10],
ParametricPlot[
Evaluate[x y, x^2 + y^2 /. y -> ysol[x]],
x, 0, 10,
PlotStyle -> Red]]
$endgroup$
$begingroup$
it works, but what I want is a way to extract the pairs fromContourPlot
whenSolve
does not work to use them as parameters inParametricPlot
.
$endgroup$
– Patrick El Pollo
8 hours ago
$begingroup$
@PatrickElPollo - have you tried using a numeric solver such asNSolve
orFindRoot
?
$endgroup$
– Bob Hanlon
4 hours ago
add a comment |
$begingroup$
This may be what you want
Clear["Global`*"]
eqn = 10 == x + y;
ysol[x_] = y /. Solve[eqn, y][[1]]
(* 10 - x *)
Show[
ParametricPlot[
x y, x^2 + y^2,
x, 0, 10, y, 0, 10],
ParametricPlot[
Evaluate[x y, x^2 + y^2 /. y -> ysol[x]],
x, 0, 10,
PlotStyle -> Red]]
$endgroup$
This may be what you want
Clear["Global`*"]
eqn = 10 == x + y;
ysol[x_] = y /. Solve[eqn, y][[1]]
(* 10 - x *)
Show[
ParametricPlot[
x y, x^2 + y^2,
x, 0, 10, y, 0, 10],
ParametricPlot[
Evaluate[x y, x^2 + y^2 /. y -> ysol[x]],
x, 0, 10,
PlotStyle -> Red]]
answered 9 hours ago
Bob HanlonBob Hanlon
63.4k3 gold badges36 silver badges99 bronze badges
63.4k3 gold badges36 silver badges99 bronze badges
$begingroup$
it works, but what I want is a way to extract the pairs fromContourPlot
whenSolve
does not work to use them as parameters inParametricPlot
.
$endgroup$
– Patrick El Pollo
8 hours ago
$begingroup$
@PatrickElPollo - have you tried using a numeric solver such asNSolve
orFindRoot
?
$endgroup$
– Bob Hanlon
4 hours ago
add a comment |
$begingroup$
it works, but what I want is a way to extract the pairs fromContourPlot
whenSolve
does not work to use them as parameters inParametricPlot
.
$endgroup$
– Patrick El Pollo
8 hours ago
$begingroup$
@PatrickElPollo - have you tried using a numeric solver such asNSolve
orFindRoot
?
$endgroup$
– Bob Hanlon
4 hours ago
$begingroup$
it works, but what I want is a way to extract the pairs from
ContourPlot
when Solve
does not work to use them as parameters in ParametricPlot
.$endgroup$
– Patrick El Pollo
8 hours ago
$begingroup$
it works, but what I want is a way to extract the pairs from
ContourPlot
when Solve
does not work to use them as parameters in ParametricPlot
.$endgroup$
– Patrick El Pollo
8 hours ago
$begingroup$
@PatrickElPollo - have you tried using a numeric solver such as
NSolve
or FindRoot
?$endgroup$
– Bob Hanlon
4 hours ago
$begingroup$
@PatrickElPollo - have you tried using a numeric solver such as
NSolve
or FindRoot
?$endgroup$
– Bob Hanlon
4 hours ago
add a comment |
Thanks for contributing an answer to Mathematica Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
Use MathJax to format equations. MathJax reference.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f201627%2fuse-contourplot-data-in-parametricplot%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
2
$begingroup$
How about a parametric region
Region[ParametricRegion[x y, x^2 + y^2, x + y == 10, x, 0, 10, y, 0, 10], Frame -> True]
$endgroup$
– Simon Woods
7 hours ago