How to color a curveChanging the background color of the framed region of a plotHow to do the log scale plot for ListContourPlotContourPlot color problemsListPlot will not color markers in accordance with my color functionHow to color the exterior of a region in a `RegionPlot`?How to color a particular contour line in a ContourPlot and obtain the area surrounded?Color consistency in Plot3D with 2D projectionPlotting the outer region contourPlotting displacement values over defined regionWhat is the logarithmic color scales?(not logarithmic axes)
How to represent jealousy in a cute way?
As easy as Three, Two, One... How fast can you go from Five to Four?
My mom's return ticket is 3 days after I-94 expires
How much web presence should I have?
Should I explain the reasons for gaslighting?
Attempt to de-reference a null object when calling class method from Test class
C++ logging library
Was planting UN flag on Moon ever discussed?
Do they make "karaoke" versions of concertos for solo practice?
What is Gilligan's full Name?
Prove that the infinite series equals 1
Dedicated bike GPS computer over smartphone
What do you call the action of "describing events as they happen" like sports anchors do?
Professor Roman loves to teach unorthodox Chemistry
What plausible reason could I give for my FTL drive only working in space
Can I use 220 V outlets on a 15 ampere breaker and wire it up as 110 V?
A life of PhD: is it feasible?
How to use the word seem
Oil draining out shortly after turbo hose detached/broke
Is it advisable to add a location heads-up when a scene changes in a novel?
Suppose leased car is totalled: what are financial implications?
If absolute velocity does not exist, how can we say a rocket accelerates in empty space?
Why do I seem to lose data using this bash pipe construction?
Finding diameter of a circle using two chords and angle between them
How to color a curve
Changing the background color of the framed region of a plotHow to do the log scale plot for ListContourPlotContourPlot color problemsListPlot will not color markers in accordance with my color functionHow to color the exterior of a region in a `RegionPlot`?How to color a particular contour line in a ContourPlot and obtain the area surrounded?Color consistency in Plot3D with 2D projectionPlotting the outer region contourPlotting displacement values over defined regionWhat is the logarithmic color scales?(not logarithmic axes)
$begingroup$
How does one color the interior of the elongated circular region in the following figure:
ContourPlot[y^2 - x (x - 1)(x - 3) == 0, x, -2, 7, y, -4, 3]
plotting
$endgroup$
add a comment |
$begingroup$
How does one color the interior of the elongated circular region in the following figure:
ContourPlot[y^2 - x (x - 1)(x - 3) == 0, x, -2, 7, y, -4, 3]
plotting
$endgroup$
add a comment |
$begingroup$
How does one color the interior of the elongated circular region in the following figure:
ContourPlot[y^2 - x (x - 1)(x - 3) == 0, x, -2, 7, y, -4, 3]
plotting
$endgroup$
How does one color the interior of the elongated circular region in the following figure:
ContourPlot[y^2 - x (x - 1)(x - 3) == 0, x, -2, 7, y, -4, 3]
plotting
plotting
edited Mar 25 at 0:04
J. M. is away♦
99.3k10315472
99.3k10315472
asked Mar 24 at 20:37
Sara yaqobSara yaqob
425
425
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
$begingroup$
Try without "==0"
ContourPlot[y^2 - x (x - 1) (x - 3), x, -2, 7, y, -4, 3]
$endgroup$
$begingroup$
But I need only the curve not the surface
$endgroup$
– Sara yaqob
Mar 24 at 20:47
add a comment |
$begingroup$
Your plot
c = ContourPlot[y^2 - x (x - 1) (x - 3) == 0, x, -2, 7, y, -4, 3]
The region you would like colored
R = RegionPlot[y^2 - x (x - 1) (x - 3) < 0 && x < 2, x, -2, 7, y, -4, 3]
Both plotted together
Show[c, R]
$endgroup$
1
$begingroup$
Thank you so so much sir. That's what I need.
$endgroup$
– Sara yaqob
Mar 24 at 20:50
$begingroup$
@Sara, You are welcome!
$endgroup$
– mjw
Mar 24 at 20:52
2
$begingroup$
@Sarayaqob you mistakenly accepted my answer
$endgroup$
– Xminer
Mar 24 at 21:05
1
$begingroup$
That's okay. Anyway, your answer works. One question is whether or not we can color in the round area only usingContourPlot[]
.
$endgroup$
– mjw
Mar 26 at 17:11
$begingroup$
You can color theRegionPlot
withPlotStyle
, e.g.R = RegionPlot[ y^2 - x (x - 1) (x - 3) < 0 && x < 2, x, -2, 7, y, -4, 3, PlotStyle -> Yellow]
$endgroup$
– rmw
Apr 4 at 17:08
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%2f193893%2fhow-to-color-a-curve%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$
Try without "==0"
ContourPlot[y^2 - x (x - 1) (x - 3), x, -2, 7, y, -4, 3]
$endgroup$
$begingroup$
But I need only the curve not the surface
$endgroup$
– Sara yaqob
Mar 24 at 20:47
add a comment |
$begingroup$
Try without "==0"
ContourPlot[y^2 - x (x - 1) (x - 3), x, -2, 7, y, -4, 3]
$endgroup$
$begingroup$
But I need only the curve not the surface
$endgroup$
– Sara yaqob
Mar 24 at 20:47
add a comment |
$begingroup$
Try without "==0"
ContourPlot[y^2 - x (x - 1) (x - 3), x, -2, 7, y, -4, 3]
$endgroup$
Try without "==0"
ContourPlot[y^2 - x (x - 1) (x - 3), x, -2, 7, y, -4, 3]
answered Mar 24 at 20:43
XminerXminer
520211
520211
$begingroup$
But I need only the curve not the surface
$endgroup$
– Sara yaqob
Mar 24 at 20:47
add a comment |
$begingroup$
But I need only the curve not the surface
$endgroup$
– Sara yaqob
Mar 24 at 20:47
$begingroup$
But I need only the curve not the surface
$endgroup$
– Sara yaqob
Mar 24 at 20:47
$begingroup$
But I need only the curve not the surface
$endgroup$
– Sara yaqob
Mar 24 at 20:47
add a comment |
$begingroup$
Your plot
c = ContourPlot[y^2 - x (x - 1) (x - 3) == 0, x, -2, 7, y, -4, 3]
The region you would like colored
R = RegionPlot[y^2 - x (x - 1) (x - 3) < 0 && x < 2, x, -2, 7, y, -4, 3]
Both plotted together
Show[c, R]
$endgroup$
1
$begingroup$
Thank you so so much sir. That's what I need.
$endgroup$
– Sara yaqob
Mar 24 at 20:50
$begingroup$
@Sara, You are welcome!
$endgroup$
– mjw
Mar 24 at 20:52
2
$begingroup$
@Sarayaqob you mistakenly accepted my answer
$endgroup$
– Xminer
Mar 24 at 21:05
1
$begingroup$
That's okay. Anyway, your answer works. One question is whether or not we can color in the round area only usingContourPlot[]
.
$endgroup$
– mjw
Mar 26 at 17:11
$begingroup$
You can color theRegionPlot
withPlotStyle
, e.g.R = RegionPlot[ y^2 - x (x - 1) (x - 3) < 0 && x < 2, x, -2, 7, y, -4, 3, PlotStyle -> Yellow]
$endgroup$
– rmw
Apr 4 at 17:08
add a comment |
$begingroup$
Your plot
c = ContourPlot[y^2 - x (x - 1) (x - 3) == 0, x, -2, 7, y, -4, 3]
The region you would like colored
R = RegionPlot[y^2 - x (x - 1) (x - 3) < 0 && x < 2, x, -2, 7, y, -4, 3]
Both plotted together
Show[c, R]
$endgroup$
1
$begingroup$
Thank you so so much sir. That's what I need.
$endgroup$
– Sara yaqob
Mar 24 at 20:50
$begingroup$
@Sara, You are welcome!
$endgroup$
– mjw
Mar 24 at 20:52
2
$begingroup$
@Sarayaqob you mistakenly accepted my answer
$endgroup$
– Xminer
Mar 24 at 21:05
1
$begingroup$
That's okay. Anyway, your answer works. One question is whether or not we can color in the round area only usingContourPlot[]
.
$endgroup$
– mjw
Mar 26 at 17:11
$begingroup$
You can color theRegionPlot
withPlotStyle
, e.g.R = RegionPlot[ y^2 - x (x - 1) (x - 3) < 0 && x < 2, x, -2, 7, y, -4, 3, PlotStyle -> Yellow]
$endgroup$
– rmw
Apr 4 at 17:08
add a comment |
$begingroup$
Your plot
c = ContourPlot[y^2 - x (x - 1) (x - 3) == 0, x, -2, 7, y, -4, 3]
The region you would like colored
R = RegionPlot[y^2 - x (x - 1) (x - 3) < 0 && x < 2, x, -2, 7, y, -4, 3]
Both plotted together
Show[c, R]
$endgroup$
Your plot
c = ContourPlot[y^2 - x (x - 1) (x - 3) == 0, x, -2, 7, y, -4, 3]
The region you would like colored
R = RegionPlot[y^2 - x (x - 1) (x - 3) < 0 && x < 2, x, -2, 7, y, -4, 3]
Both plotted together
Show[c, R]
edited Mar 25 at 1:24
answered Mar 24 at 20:49
mjwmjw
1,33910
1,33910
1
$begingroup$
Thank you so so much sir. That's what I need.
$endgroup$
– Sara yaqob
Mar 24 at 20:50
$begingroup$
@Sara, You are welcome!
$endgroup$
– mjw
Mar 24 at 20:52
2
$begingroup$
@Sarayaqob you mistakenly accepted my answer
$endgroup$
– Xminer
Mar 24 at 21:05
1
$begingroup$
That's okay. Anyway, your answer works. One question is whether or not we can color in the round area only usingContourPlot[]
.
$endgroup$
– mjw
Mar 26 at 17:11
$begingroup$
You can color theRegionPlot
withPlotStyle
, e.g.R = RegionPlot[ y^2 - x (x - 1) (x - 3) < 0 && x < 2, x, -2, 7, y, -4, 3, PlotStyle -> Yellow]
$endgroup$
– rmw
Apr 4 at 17:08
add a comment |
1
$begingroup$
Thank you so so much sir. That's what I need.
$endgroup$
– Sara yaqob
Mar 24 at 20:50
$begingroup$
@Sara, You are welcome!
$endgroup$
– mjw
Mar 24 at 20:52
2
$begingroup$
@Sarayaqob you mistakenly accepted my answer
$endgroup$
– Xminer
Mar 24 at 21:05
1
$begingroup$
That's okay. Anyway, your answer works. One question is whether or not we can color in the round area only usingContourPlot[]
.
$endgroup$
– mjw
Mar 26 at 17:11
$begingroup$
You can color theRegionPlot
withPlotStyle
, e.g.R = RegionPlot[ y^2 - x (x - 1) (x - 3) < 0 && x < 2, x, -2, 7, y, -4, 3, PlotStyle -> Yellow]
$endgroup$
– rmw
Apr 4 at 17:08
1
1
$begingroup$
Thank you so so much sir. That's what I need.
$endgroup$
– Sara yaqob
Mar 24 at 20:50
$begingroup$
Thank you so so much sir. That's what I need.
$endgroup$
– Sara yaqob
Mar 24 at 20:50
$begingroup$
@Sara, You are welcome!
$endgroup$
– mjw
Mar 24 at 20:52
$begingroup$
@Sara, You are welcome!
$endgroup$
– mjw
Mar 24 at 20:52
2
2
$begingroup$
@Sarayaqob you mistakenly accepted my answer
$endgroup$
– Xminer
Mar 24 at 21:05
$begingroup$
@Sarayaqob you mistakenly accepted my answer
$endgroup$
– Xminer
Mar 24 at 21:05
1
1
$begingroup$
That's okay. Anyway, your answer works. One question is whether or not we can color in the round area only using
ContourPlot[]
.$endgroup$
– mjw
Mar 26 at 17:11
$begingroup$
That's okay. Anyway, your answer works. One question is whether or not we can color in the round area only using
ContourPlot[]
.$endgroup$
– mjw
Mar 26 at 17:11
$begingroup$
You can color the
RegionPlot
with PlotStyle
, e.g. R = RegionPlot[ y^2 - x (x - 1) (x - 3) < 0 && x < 2, x, -2, 7, y, -4, 3, PlotStyle -> Yellow]
$endgroup$
– rmw
Apr 4 at 17:08
$begingroup$
You can color the
RegionPlot
with PlotStyle
, e.g. R = RegionPlot[ y^2 - x (x - 1) (x - 3) < 0 && x < 2, x, -2, 7, y, -4, 3, PlotStyle -> Yellow]
$endgroup$
– rmw
Apr 4 at 17:08
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%2f193893%2fhow-to-color-a-curve%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