Putting a 2D region plot under a 3D plot The Next CEO of Stack OverflowPutting ticks with values on a parametric plotPlot above desired regionIntersecting RegionPlotsRegion plot with predicatePlot region from given coordinatesPutting arrows in 3d plotFilling the region under a lineHow Plot this RegionPlot a function under constraintregion plot with region function
What does "Its cash flow is deeply negative" mean?
% symbol leads to superlong (forever?) compilations
Is a stroke of luck acceptable after a series of unfavorable events?
Putting a 2D region plot under a 3D plot
MAZDA 3 2006 (UK) - poor acceleration then takes off at 3250 revs
Text adventure game code
Return of the Riley Riddles in Reverse
Can a single photon have an energy density?
How can I quit an app using Terminal?
How to count occurrences of text in a file?
Anatomically Correct Strange Women In Ponds Distributing Swords
Anatomically Correct Mesopelagic Aves
How can I open an app using Terminal?
How to start emacs in "nothing" mode (`fundamental-mode`)
How do I get the green key off the shelf in the Dobby level of Lego Harry Potter 2?
Why doesn't a table tennis ball float on the surface? How do we calculate buoyancy here?
How to safely derail a train during transit?
Is it a good idea to use COLUMN AS (left([Another_Column],(4)) instead of LEFT in the select?
Where to find order of arguments for default functions
Is the concept of a "numerable" fiber bundle really useful or an empty generalization?
Why do professional authors make "consistency" mistakes? And how to avoid them?
What happens if you roll doubles 3 times then land on "Go to jail?"
Unreliable Magic - Is it worth it?
How do I construct this japanese bowl?
Putting a 2D region plot under a 3D plot
The Next CEO of Stack OverflowPutting ticks with values on a parametric plotPlot above desired regionIntersecting RegionPlotsRegion plot with predicatePlot region from given coordinatesPutting arrows in 3d plotFilling the region under a lineHow Plot this RegionPlot a function under constraintregion plot with region function
$begingroup$
I am trying to plot this 3D function over a hexagonal region:
a1 = Sqrt[3] 1, 0;
a2 = Sqrt[3] 1/2, Sqrt[3]/2;
k = kx, ky;
S = 1 + Exp[I k. a2] + Exp[I k.(a2 - a1)];
EE = Abs[S]
R = 4 Pi/(3 Sqrt[3]);
ep = Plot3D[EE, -EE, kx, ky [Element] RegularPolygon[R, 6], Axes -> False, Boxed -> False, AspectRatio -> 2]
This works fine, but I would also like to draw the region under the 3D graph, something like:
bz = Graphics[RegularPolygon[R, 6]];
or
bz = RegionPlot[RegularPolygon[R, 6]];
However, using
Show[ep, bz]
doesn't work. I have found a few similar questions but they mostly seem to be about contours, I didn't know how to extend this for something as simple as a regular polygon.
plotting regions
$endgroup$
add a comment |
$begingroup$
I am trying to plot this 3D function over a hexagonal region:
a1 = Sqrt[3] 1, 0;
a2 = Sqrt[3] 1/2, Sqrt[3]/2;
k = kx, ky;
S = 1 + Exp[I k. a2] + Exp[I k.(a2 - a1)];
EE = Abs[S]
R = 4 Pi/(3 Sqrt[3]);
ep = Plot3D[EE, -EE, kx, ky [Element] RegularPolygon[R, 6], Axes -> False, Boxed -> False, AspectRatio -> 2]
This works fine, but I would also like to draw the region under the 3D graph, something like:
bz = Graphics[RegularPolygon[R, 6]];
or
bz = RegionPlot[RegularPolygon[R, 6]];
However, using
Show[ep, bz]
doesn't work. I have found a few similar questions but they mostly seem to be about contours, I didn't know how to extend this for something as simple as a regular polygon.
plotting regions
$endgroup$
$begingroup$
do you want you Polygon flat under the region of 3D !?
$endgroup$
– Alrubaie
5 hours ago
$begingroup$
Try This p = Graphics3D[Polygon[1, 0, 0, 0, 1, 0, 0, 0, 1]]
$endgroup$
– Alrubaie
4 hours ago
add a comment |
$begingroup$
I am trying to plot this 3D function over a hexagonal region:
a1 = Sqrt[3] 1, 0;
a2 = Sqrt[3] 1/2, Sqrt[3]/2;
k = kx, ky;
S = 1 + Exp[I k. a2] + Exp[I k.(a2 - a1)];
EE = Abs[S]
R = 4 Pi/(3 Sqrt[3]);
ep = Plot3D[EE, -EE, kx, ky [Element] RegularPolygon[R, 6], Axes -> False, Boxed -> False, AspectRatio -> 2]
This works fine, but I would also like to draw the region under the 3D graph, something like:
bz = Graphics[RegularPolygon[R, 6]];
or
bz = RegionPlot[RegularPolygon[R, 6]];
However, using
Show[ep, bz]
doesn't work. I have found a few similar questions but they mostly seem to be about contours, I didn't know how to extend this for something as simple as a regular polygon.
plotting regions
$endgroup$
I am trying to plot this 3D function over a hexagonal region:
a1 = Sqrt[3] 1, 0;
a2 = Sqrt[3] 1/2, Sqrt[3]/2;
k = kx, ky;
S = 1 + Exp[I k. a2] + Exp[I k.(a2 - a1)];
EE = Abs[S]
R = 4 Pi/(3 Sqrt[3]);
ep = Plot3D[EE, -EE, kx, ky [Element] RegularPolygon[R, 6], Axes -> False, Boxed -> False, AspectRatio -> 2]
This works fine, but I would also like to draw the region under the 3D graph, something like:
bz = Graphics[RegularPolygon[R, 6]];
or
bz = RegionPlot[RegularPolygon[R, 6]];
However, using
Show[ep, bz]
doesn't work. I have found a few similar questions but they mostly seem to be about contours, I didn't know how to extend this for something as simple as a regular polygon.
plotting regions
plotting regions
edited 12 mins ago
J. M. is slightly pensive♦
98.7k10310467
98.7k10310467
asked 5 hours ago
AshAsh
185
185
$begingroup$
do you want you Polygon flat under the region of 3D !?
$endgroup$
– Alrubaie
5 hours ago
$begingroup$
Try This p = Graphics3D[Polygon[1, 0, 0, 0, 1, 0, 0, 0, 1]]
$endgroup$
– Alrubaie
4 hours ago
add a comment |
$begingroup$
do you want you Polygon flat under the region of 3D !?
$endgroup$
– Alrubaie
5 hours ago
$begingroup$
Try This p = Graphics3D[Polygon[1, 0, 0, 0, 1, 0, 0, 0, 1]]
$endgroup$
– Alrubaie
4 hours ago
$begingroup$
do you want you Polygon flat under the region of 3D !?
$endgroup$
– Alrubaie
5 hours ago
$begingroup$
do you want you Polygon flat under the region of 3D !?
$endgroup$
– Alrubaie
5 hours ago
$begingroup$
Try This p = Graphics3D[Polygon[1, 0, 0, 0, 1, 0, 0, 0, 1]]
$endgroup$
– Alrubaie
4 hours ago
$begingroup$
Try This p = Graphics3D[Polygon[1, 0, 0, 0, 1, 0, 0, 0, 1]]
$endgroup$
– Alrubaie
4 hours ago
add a comment |
1 Answer
1
active
oldest
votes
$begingroup$
Try this:
region = Graphics3D[Polygon[CirclePoints[R, 6] /. x_, y_ :> x, y, -3]];
Show[ep,region]
$endgroup$
$begingroup$
Works perfectly, thank you!
$endgroup$
– Ash
4 hours ago
$begingroup$
@Ash You are very welcome! Thank you for the accept as well!
$endgroup$
– MarcoB
4 hours ago
$begingroup$
That's nice! WhatAspectRatio
did you use?
$endgroup$
– mjw
3 hours ago
$begingroup$
@mjw Thank you! The aspect ratio is inherited fromep
, which was in the OP's original code; they had set it to $2$.
$endgroup$
– MarcoB
3 hours ago
add a comment |
Your Answer
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%2f194130%2fputting-a-2d-region-plot-under-a-3d-plot%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$
Try this:
region = Graphics3D[Polygon[CirclePoints[R, 6] /. x_, y_ :> x, y, -3]];
Show[ep,region]
$endgroup$
$begingroup$
Works perfectly, thank you!
$endgroup$
– Ash
4 hours ago
$begingroup$
@Ash You are very welcome! Thank you for the accept as well!
$endgroup$
– MarcoB
4 hours ago
$begingroup$
That's nice! WhatAspectRatio
did you use?
$endgroup$
– mjw
3 hours ago
$begingroup$
@mjw Thank you! The aspect ratio is inherited fromep
, which was in the OP's original code; they had set it to $2$.
$endgroup$
– MarcoB
3 hours ago
add a comment |
$begingroup$
Try this:
region = Graphics3D[Polygon[CirclePoints[R, 6] /. x_, y_ :> x, y, -3]];
Show[ep,region]
$endgroup$
$begingroup$
Works perfectly, thank you!
$endgroup$
– Ash
4 hours ago
$begingroup$
@Ash You are very welcome! Thank you for the accept as well!
$endgroup$
– MarcoB
4 hours ago
$begingroup$
That's nice! WhatAspectRatio
did you use?
$endgroup$
– mjw
3 hours ago
$begingroup$
@mjw Thank you! The aspect ratio is inherited fromep
, which was in the OP's original code; they had set it to $2$.
$endgroup$
– MarcoB
3 hours ago
add a comment |
$begingroup$
Try this:
region = Graphics3D[Polygon[CirclePoints[R, 6] /. x_, y_ :> x, y, -3]];
Show[ep,region]
$endgroup$
Try this:
region = Graphics3D[Polygon[CirclePoints[R, 6] /. x_, y_ :> x, y, -3]];
Show[ep,region]
answered 4 hours ago
MarcoBMarcoB
38k556114
38k556114
$begingroup$
Works perfectly, thank you!
$endgroup$
– Ash
4 hours ago
$begingroup$
@Ash You are very welcome! Thank you for the accept as well!
$endgroup$
– MarcoB
4 hours ago
$begingroup$
That's nice! WhatAspectRatio
did you use?
$endgroup$
– mjw
3 hours ago
$begingroup$
@mjw Thank you! The aspect ratio is inherited fromep
, which was in the OP's original code; they had set it to $2$.
$endgroup$
– MarcoB
3 hours ago
add a comment |
$begingroup$
Works perfectly, thank you!
$endgroup$
– Ash
4 hours ago
$begingroup$
@Ash You are very welcome! Thank you for the accept as well!
$endgroup$
– MarcoB
4 hours ago
$begingroup$
That's nice! WhatAspectRatio
did you use?
$endgroup$
– mjw
3 hours ago
$begingroup$
@mjw Thank you! The aspect ratio is inherited fromep
, which was in the OP's original code; they had set it to $2$.
$endgroup$
– MarcoB
3 hours ago
$begingroup$
Works perfectly, thank you!
$endgroup$
– Ash
4 hours ago
$begingroup$
Works perfectly, thank you!
$endgroup$
– Ash
4 hours ago
$begingroup$
@Ash You are very welcome! Thank you for the accept as well!
$endgroup$
– MarcoB
4 hours ago
$begingroup$
@Ash You are very welcome! Thank you for the accept as well!
$endgroup$
– MarcoB
4 hours ago
$begingroup$
That's nice! What
AspectRatio
did you use?$endgroup$
– mjw
3 hours ago
$begingroup$
That's nice! What
AspectRatio
did you use?$endgroup$
– mjw
3 hours ago
$begingroup$
@mjw Thank you! The aspect ratio is inherited from
ep
, which was in the OP's original code; they had set it to $2$.$endgroup$
– MarcoB
3 hours ago
$begingroup$
@mjw Thank you! The aspect ratio is inherited from
ep
, which was in the OP's original code; they had set it to $2$.$endgroup$
– MarcoB
3 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%2f194130%2fputting-a-2d-region-plot-under-a-3d-plot%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$
do you want you Polygon flat under the region of 3D !?
$endgroup$
– Alrubaie
5 hours ago
$begingroup$
Try This p = Graphics3D[Polygon[1, 0, 0, 0, 1, 0, 0, 0, 1]]
$endgroup$
– Alrubaie
4 hours ago