RegionPlot of annulus gives a mesh
$begingroup$
So I tried plotting an annulus in two ways:
RegionPlot[Annulus[{0,0},{a,b}]]
Graphics[Annulus[{0,0},{a,b}]]
Why does RegionPlot give a fractal looking thing? (see below for when a=1; b=5;)
*note, I used wolfram programing lab.
graphics regions
$endgroup$
|
show 4 more comments
$begingroup$
So I tried plotting an annulus in two ways:
RegionPlot[Annulus[{0,0},{a,b}]]
Graphics[Annulus[{0,0},{a,b}]]
Why does RegionPlot give a fractal looking thing? (see below for when a=1; b=5;)
*note, I used wolfram programing lab.
graphics regions
$endgroup$
$begingroup$
What are $a$ and $b$ here?
$endgroup$
– mjw
Mar 29 at 20:03
$begingroup$
Try a=1; b=5; But really any values give something weird
$endgroup$
– Ion Sme
Mar 29 at 20:08
4
$begingroup$
Because it discretized the region in order to plot it, and it is showing the underlying triangulation mesh.
$endgroup$
– MarcoB
Mar 29 at 20:12
1
$begingroup$
@IonSme I guess they just use different defaults for plotting; the Graphics result is "normal-looking" though.
$endgroup$
– MarcoB
Mar 29 at 20:17
2
$begingroup$
There are some subtle differences going on how Mma showsRegion
s andRegionPlot
Graphics
. AlsoRegion
s can be defined analytically viaImplicitRegion
orParametricRegion
or as 'flat'MeshRegion
s.DiscretizeRegion
converts every type to aMeshRegion
and some functions likeRegionPlot
might use something similar toDiscretizeRegion
under the hood to make plotting easier, whose discretization it for some reason decides to show. Like others wrote you can useImplicitRegion
to get a different (not discretized) look in your case.
$endgroup$
– Thies Heidecke
Mar 29 at 21:19
|
show 4 more comments
$begingroup$
So I tried plotting an annulus in two ways:
RegionPlot[Annulus[{0,0},{a,b}]]
Graphics[Annulus[{0,0},{a,b}]]
Why does RegionPlot give a fractal looking thing? (see below for when a=1; b=5;)
*note, I used wolfram programing lab.
graphics regions
$endgroup$
So I tried plotting an annulus in two ways:
RegionPlot[Annulus[{0,0},{a,b}]]
Graphics[Annulus[{0,0},{a,b}]]
Why does RegionPlot give a fractal looking thing? (see below for when a=1; b=5;)
*note, I used wolfram programing lab.
graphics regions
graphics regions
edited Mar 29 at 20:48
MarcoB
38.4k556115
38.4k556115
asked Mar 29 at 20:00
Ion SmeIon Sme
877
877
$begingroup$
What are $a$ and $b$ here?
$endgroup$
– mjw
Mar 29 at 20:03
$begingroup$
Try a=1; b=5; But really any values give something weird
$endgroup$
– Ion Sme
Mar 29 at 20:08
4
$begingroup$
Because it discretized the region in order to plot it, and it is showing the underlying triangulation mesh.
$endgroup$
– MarcoB
Mar 29 at 20:12
1
$begingroup$
@IonSme I guess they just use different defaults for plotting; the Graphics result is "normal-looking" though.
$endgroup$
– MarcoB
Mar 29 at 20:17
2
$begingroup$
There are some subtle differences going on how Mma showsRegion
s andRegionPlot
Graphics
. AlsoRegion
s can be defined analytically viaImplicitRegion
orParametricRegion
or as 'flat'MeshRegion
s.DiscretizeRegion
converts every type to aMeshRegion
and some functions likeRegionPlot
might use something similar toDiscretizeRegion
under the hood to make plotting easier, whose discretization it for some reason decides to show. Like others wrote you can useImplicitRegion
to get a different (not discretized) look in your case.
$endgroup$
– Thies Heidecke
Mar 29 at 21:19
|
show 4 more comments
$begingroup$
What are $a$ and $b$ here?
$endgroup$
– mjw
Mar 29 at 20:03
$begingroup$
Try a=1; b=5; But really any values give something weird
$endgroup$
– Ion Sme
Mar 29 at 20:08
4
$begingroup$
Because it discretized the region in order to plot it, and it is showing the underlying triangulation mesh.
$endgroup$
– MarcoB
Mar 29 at 20:12
1
$begingroup$
@IonSme I guess they just use different defaults for plotting; the Graphics result is "normal-looking" though.
$endgroup$
– MarcoB
Mar 29 at 20:17
2
$begingroup$
There are some subtle differences going on how Mma showsRegion
s andRegionPlot
Graphics
. AlsoRegion
s can be defined analytically viaImplicitRegion
orParametricRegion
or as 'flat'MeshRegion
s.DiscretizeRegion
converts every type to aMeshRegion
and some functions likeRegionPlot
might use something similar toDiscretizeRegion
under the hood to make plotting easier, whose discretization it for some reason decides to show. Like others wrote you can useImplicitRegion
to get a different (not discretized) look in your case.
$endgroup$
– Thies Heidecke
Mar 29 at 21:19
$begingroup$
What are $a$ and $b$ here?
$endgroup$
– mjw
Mar 29 at 20:03
$begingroup$
What are $a$ and $b$ here?
$endgroup$
– mjw
Mar 29 at 20:03
$begingroup$
Try a=1; b=5; But really any values give something weird
$endgroup$
– Ion Sme
Mar 29 at 20:08
$begingroup$
Try a=1; b=5; But really any values give something weird
$endgroup$
– Ion Sme
Mar 29 at 20:08
4
4
$begingroup$
Because it discretized the region in order to plot it, and it is showing the underlying triangulation mesh.
$endgroup$
– MarcoB
Mar 29 at 20:12
$begingroup$
Because it discretized the region in order to plot it, and it is showing the underlying triangulation mesh.
$endgroup$
– MarcoB
Mar 29 at 20:12
1
1
$begingroup$
@IonSme I guess they just use different defaults for plotting; the Graphics result is "normal-looking" though.
$endgroup$
– MarcoB
Mar 29 at 20:17
$begingroup$
@IonSme I guess they just use different defaults for plotting; the Graphics result is "normal-looking" though.
$endgroup$
– MarcoB
Mar 29 at 20:17
2
2
$begingroup$
There are some subtle differences going on how Mma shows
Region
s and RegionPlot
Graphics
. Also Region
s can be defined analytically via ImplicitRegion
or ParametricRegion
or as 'flat' MeshRegion
s. DiscretizeRegion
converts every type to a MeshRegion
and some functions like RegionPlot
might use something similar to DiscretizeRegion
under the hood to make plotting easier, whose discretization it for some reason decides to show. Like others wrote you can use ImplicitRegion
to get a different (not discretized) look in your case.$endgroup$
– Thies Heidecke
Mar 29 at 21:19
$begingroup$
There are some subtle differences going on how Mma shows
Region
s and RegionPlot
Graphics
. Also Region
s can be defined analytically via ImplicitRegion
or ParametricRegion
or as 'flat' MeshRegion
s. DiscretizeRegion
converts every type to a MeshRegion
and some functions like RegionPlot
might use something similar to DiscretizeRegion
under the hood to make plotting easier, whose discretization it for some reason decides to show. Like others wrote you can use ImplicitRegion
to get a different (not discretized) look in your case.$endgroup$
– Thies Heidecke
Mar 29 at 21:19
|
show 4 more comments
1 Answer
1
active
oldest
votes
$begingroup$
a = 1; b = 5;
Please try plotting with Region
. These look okay to me:
Region[RegionDifference[Disk[{0, 0}, b], Disk[{0, 0}, a]]]
Region[Annulus[{0, 0}, {a, b}]]
Here is a decent plot, with RegionPlot
:
RegionPlot[x^2 + y^2 > 1 && x^2 + y^2 < 25, {x, -6, 6}, {y, -6, 6}]
Here it is (again) with Graphics
:
Graphics[{LightBlue, Annulus[{0, 0}, {a, b}]}]
$endgroup$
$begingroup$
Hmmm, that worked, but why is RegionPlot so funky?
$endgroup$
– Ion Sme
Mar 29 at 20:13
1
$begingroup$
I think MarcoB mostly answers this below your question. So we can then ask: Why doesRegionPlot
use one algorithm, andRegion
another?RegionPlot
seems to like functions as inputs, and also likes to have the $x$ and $y$ ranges speciifed ...
$endgroup$
– mjw
Mar 29 at 20:17
add a comment |
StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
});
});
}, "mathjax-editing");
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%2f194211%2fregionplot-of-annulus-gives-a-mesh%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
a = 1; b = 5;
Please try plotting with Region
. These look okay to me:
Region[RegionDifference[Disk[{0, 0}, b], Disk[{0, 0}, a]]]
Region[Annulus[{0, 0}, {a, b}]]
Here is a decent plot, with RegionPlot
:
RegionPlot[x^2 + y^2 > 1 && x^2 + y^2 < 25, {x, -6, 6}, {y, -6, 6}]
Here it is (again) with Graphics
:
Graphics[{LightBlue, Annulus[{0, 0}, {a, b}]}]
$endgroup$
$begingroup$
Hmmm, that worked, but why is RegionPlot so funky?
$endgroup$
– Ion Sme
Mar 29 at 20:13
1
$begingroup$
I think MarcoB mostly answers this below your question. So we can then ask: Why doesRegionPlot
use one algorithm, andRegion
another?RegionPlot
seems to like functions as inputs, and also likes to have the $x$ and $y$ ranges speciifed ...
$endgroup$
– mjw
Mar 29 at 20:17
add a comment |
$begingroup$
a = 1; b = 5;
Please try plotting with Region
. These look okay to me:
Region[RegionDifference[Disk[{0, 0}, b], Disk[{0, 0}, a]]]
Region[Annulus[{0, 0}, {a, b}]]
Here is a decent plot, with RegionPlot
:
RegionPlot[x^2 + y^2 > 1 && x^2 + y^2 < 25, {x, -6, 6}, {y, -6, 6}]
Here it is (again) with Graphics
:
Graphics[{LightBlue, Annulus[{0, 0}, {a, b}]}]
$endgroup$
$begingroup$
Hmmm, that worked, but why is RegionPlot so funky?
$endgroup$
– Ion Sme
Mar 29 at 20:13
1
$begingroup$
I think MarcoB mostly answers this below your question. So we can then ask: Why doesRegionPlot
use one algorithm, andRegion
another?RegionPlot
seems to like functions as inputs, and also likes to have the $x$ and $y$ ranges speciifed ...
$endgroup$
– mjw
Mar 29 at 20:17
add a comment |
$begingroup$
a = 1; b = 5;
Please try plotting with Region
. These look okay to me:
Region[RegionDifference[Disk[{0, 0}, b], Disk[{0, 0}, a]]]
Region[Annulus[{0, 0}, {a, b}]]
Here is a decent plot, with RegionPlot
:
RegionPlot[x^2 + y^2 > 1 && x^2 + y^2 < 25, {x, -6, 6}, {y, -6, 6}]
Here it is (again) with Graphics
:
Graphics[{LightBlue, Annulus[{0, 0}, {a, b}]}]
$endgroup$
a = 1; b = 5;
Please try plotting with Region
. These look okay to me:
Region[RegionDifference[Disk[{0, 0}, b], Disk[{0, 0}, a]]]
Region[Annulus[{0, 0}, {a, b}]]
Here is a decent plot, with RegionPlot
:
RegionPlot[x^2 + y^2 > 1 && x^2 + y^2 < 25, {x, -6, 6}, {y, -6, 6}]
Here it is (again) with Graphics
:
Graphics[{LightBlue, Annulus[{0, 0}, {a, b}]}]
edited Mar 29 at 20:26
answered Mar 29 at 20:07
mjwmjw
1,24210
1,24210
$begingroup$
Hmmm, that worked, but why is RegionPlot so funky?
$endgroup$
– Ion Sme
Mar 29 at 20:13
1
$begingroup$
I think MarcoB mostly answers this below your question. So we can then ask: Why doesRegionPlot
use one algorithm, andRegion
another?RegionPlot
seems to like functions as inputs, and also likes to have the $x$ and $y$ ranges speciifed ...
$endgroup$
– mjw
Mar 29 at 20:17
add a comment |
$begingroup$
Hmmm, that worked, but why is RegionPlot so funky?
$endgroup$
– Ion Sme
Mar 29 at 20:13
1
$begingroup$
I think MarcoB mostly answers this below your question. So we can then ask: Why doesRegionPlot
use one algorithm, andRegion
another?RegionPlot
seems to like functions as inputs, and also likes to have the $x$ and $y$ ranges speciifed ...
$endgroup$
– mjw
Mar 29 at 20:17
$begingroup$
Hmmm, that worked, but why is RegionPlot so funky?
$endgroup$
– Ion Sme
Mar 29 at 20:13
$begingroup$
Hmmm, that worked, but why is RegionPlot so funky?
$endgroup$
– Ion Sme
Mar 29 at 20:13
1
1
$begingroup$
I think MarcoB mostly answers this below your question. So we can then ask: Why does
RegionPlot
use one algorithm, and Region
another? RegionPlot
seems to like functions as inputs, and also likes to have the $x$ and $y$ ranges speciifed ...$endgroup$
– mjw
Mar 29 at 20:17
$begingroup$
I think MarcoB mostly answers this below your question. So we can then ask: Why does
RegionPlot
use one algorithm, and Region
another? RegionPlot
seems to like functions as inputs, and also likes to have the $x$ and $y$ ranges speciifed ...$endgroup$
– mjw
Mar 29 at 20:17
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%2f194211%2fregionplot-of-annulus-gives-a-mesh%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
$begingroup$
What are $a$ and $b$ here?
$endgroup$
– mjw
Mar 29 at 20:03
$begingroup$
Try a=1; b=5; But really any values give something weird
$endgroup$
– Ion Sme
Mar 29 at 20:08
4
$begingroup$
Because it discretized the region in order to plot it, and it is showing the underlying triangulation mesh.
$endgroup$
– MarcoB
Mar 29 at 20:12
1
$begingroup$
@IonSme I guess they just use different defaults for plotting; the Graphics result is "normal-looking" though.
$endgroup$
– MarcoB
Mar 29 at 20:17
2
$begingroup$
There are some subtle differences going on how Mma shows
Region
s andRegionPlot
Graphics
. AlsoRegion
s can be defined analytically viaImplicitRegion
orParametricRegion
or as 'flat'MeshRegion
s.DiscretizeRegion
converts every type to aMeshRegion
and some functions likeRegionPlot
might use something similar toDiscretizeRegion
under the hood to make plotting easier, whose discretization it for some reason decides to show. Like others wrote you can useImplicitRegion
to get a different (not discretized) look in your case.$endgroup$
– Thies Heidecke
Mar 29 at 21:19