Putting a 2D region plot under a 3D plotCan't plot rotated regionIntersecting RegionPlotsParametric Region PlotPlot when parameters are in a regionRegionPlot - not a valid region to plotSmooth region plot from list of pointsHow Plot this RegionProblem with region plotPlot shown by Region does not show the full regionPlot the region covered by a map?

Why doesn't H₄O²⁺ exist?

Python: return float 1.0 as int 1 but float 1.5 as float 1.5

Were any external disk drives stacked vertically?

How could indestructible materials be used in power generation?

Why is the ratio of two extensive quantities always intensive?

Stopping power of mountain vs road bike

Can one be a co-translator of a book, if he does not know the language that the book is translated into?

Twin primes whose sum is a cube

If human space travel is limited by the G force vulnerability, is there a way to counter G forces?

Blender 2.8 I can't see vertices, edges or faces in edit mode

Why does the EU insist on the backstop when it is clear in a no deal scenario they still intend to keep an open border?

Emailing HOD to enhance faculty application

Does casting Light, or a similar spell, have any effect when the caster is swallowed by a monster?

What killed these X2 caps?

Can a rocket refuel on Mars from water?

intersection of two sorted vectors in C++

What exploit are these user agents trying to use?

How to show the equivalence between the regularized regression and their constraint formulas using KKT

Can I make "comment-region" comment empty lines?

Does a druid starting with a bow start with no arrows?

Why can't we play rap on piano?

What mechanic is there to disable a threat instead of killing it?

Brothers & sisters

How much of data wrangling is a data scientist's job?



Putting a 2D region plot under a 3D plot


Can't plot rotated regionIntersecting RegionPlotsParametric Region PlotPlot when parameters are in a regionRegionPlot - not a valid region to plotSmooth region plot from list of pointsHow Plot this RegionProblem with region plotPlot shown by Region does not show the full regionPlot the region covered by a map?













3












$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.










share|improve this question











$endgroup$











  • $begingroup$
    do you want you Polygon flat under the region of 3D !?
    $endgroup$
    – Alrubaie
    Mar 28 at 20:28










  • $begingroup$
    Try This p = Graphics3D[Polygon[1, 0, 0, 0, 1, 0, 0, 0, 1]]
    $endgroup$
    – Alrubaie
    Mar 28 at 20:30















3












$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.










share|improve this question











$endgroup$











  • $begingroup$
    do you want you Polygon flat under the region of 3D !?
    $endgroup$
    – Alrubaie
    Mar 28 at 20:28










  • $begingroup$
    Try This p = Graphics3D[Polygon[1, 0, 0, 0, 1, 0, 0, 0, 1]]
    $endgroup$
    – Alrubaie
    Mar 28 at 20:30













3












3








3





$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.










share|improve this question











$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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 29 at 1:16









J. M. is away

98.9k10311467




98.9k10311467










asked Mar 28 at 20:02









AshAsh

235




235











  • $begingroup$
    do you want you Polygon flat under the region of 3D !?
    $endgroup$
    – Alrubaie
    Mar 28 at 20:28










  • $begingroup$
    Try This p = Graphics3D[Polygon[1, 0, 0, 0, 1, 0, 0, 0, 1]]
    $endgroup$
    – Alrubaie
    Mar 28 at 20:30
















  • $begingroup$
    do you want you Polygon flat under the region of 3D !?
    $endgroup$
    – Alrubaie
    Mar 28 at 20:28










  • $begingroup$
    Try This p = Graphics3D[Polygon[1, 0, 0, 0, 1, 0, 0, 0, 1]]
    $endgroup$
    – Alrubaie
    Mar 28 at 20:30















$begingroup$
do you want you Polygon flat under the region of 3D !?
$endgroup$
– Alrubaie
Mar 28 at 20:28




$begingroup$
do you want you Polygon flat under the region of 3D !?
$endgroup$
– Alrubaie
Mar 28 at 20:28












$begingroup$
Try This p = Graphics3D[Polygon[1, 0, 0, 0, 1, 0, 0, 0, 1]]
$endgroup$
– Alrubaie
Mar 28 at 20:30




$begingroup$
Try This p = Graphics3D[Polygon[1, 0, 0, 0, 1, 0, 0, 0, 1]]
$endgroup$
– Alrubaie
Mar 28 at 20:30










1 Answer
1






active

oldest

votes


















5












$begingroup$

Try this:



region = Graphics3D[Polygon[CirclePoints[R, 6] /. x_, y_ :> x, y, -3]];
Show[ep,region]


Mathematica graphics






share|improve this answer









$endgroup$












  • $begingroup$
    Works perfectly, thank you!
    $endgroup$
    – Ash
    Mar 28 at 20:41










  • $begingroup$
    @Ash You are very welcome! Thank you for the accept as well!
    $endgroup$
    – MarcoB
    Mar 28 at 20:42











  • $begingroup$
    That's nice! What AspectRatio did you use?
    $endgroup$
    – mjw
    Mar 28 at 21:49










  • $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
    Mar 28 at 22:18











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
);



);













draft saved

draft discarded


















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









5












$begingroup$

Try this:



region = Graphics3D[Polygon[CirclePoints[R, 6] /. x_, y_ :> x, y, -3]];
Show[ep,region]


Mathematica graphics






share|improve this answer









$endgroup$












  • $begingroup$
    Works perfectly, thank you!
    $endgroup$
    – Ash
    Mar 28 at 20:41










  • $begingroup$
    @Ash You are very welcome! Thank you for the accept as well!
    $endgroup$
    – MarcoB
    Mar 28 at 20:42











  • $begingroup$
    That's nice! What AspectRatio did you use?
    $endgroup$
    – mjw
    Mar 28 at 21:49










  • $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
    Mar 28 at 22:18















5












$begingroup$

Try this:



region = Graphics3D[Polygon[CirclePoints[R, 6] /. x_, y_ :> x, y, -3]];
Show[ep,region]


Mathematica graphics






share|improve this answer









$endgroup$












  • $begingroup$
    Works perfectly, thank you!
    $endgroup$
    – Ash
    Mar 28 at 20:41










  • $begingroup$
    @Ash You are very welcome! Thank you for the accept as well!
    $endgroup$
    – MarcoB
    Mar 28 at 20:42











  • $begingroup$
    That's nice! What AspectRatio did you use?
    $endgroup$
    – mjw
    Mar 28 at 21:49










  • $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
    Mar 28 at 22:18













5












5








5





$begingroup$

Try this:



region = Graphics3D[Polygon[CirclePoints[R, 6] /. x_, y_ :> x, y, -3]];
Show[ep,region]


Mathematica graphics






share|improve this answer









$endgroup$



Try this:



region = Graphics3D[Polygon[CirclePoints[R, 6] /. x_, y_ :> x, y, -3]];
Show[ep,region]


Mathematica graphics







share|improve this answer












share|improve this answer



share|improve this answer










answered Mar 28 at 20:35









MarcoBMarcoB

38.5k557115




38.5k557115











  • $begingroup$
    Works perfectly, thank you!
    $endgroup$
    – Ash
    Mar 28 at 20:41










  • $begingroup$
    @Ash You are very welcome! Thank you for the accept as well!
    $endgroup$
    – MarcoB
    Mar 28 at 20:42











  • $begingroup$
    That's nice! What AspectRatio did you use?
    $endgroup$
    – mjw
    Mar 28 at 21:49










  • $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
    Mar 28 at 22:18
















  • $begingroup$
    Works perfectly, thank you!
    $endgroup$
    – Ash
    Mar 28 at 20:41










  • $begingroup$
    @Ash You are very welcome! Thank you for the accept as well!
    $endgroup$
    – MarcoB
    Mar 28 at 20:42











  • $begingroup$
    That's nice! What AspectRatio did you use?
    $endgroup$
    – mjw
    Mar 28 at 21:49










  • $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
    Mar 28 at 22:18















$begingroup$
Works perfectly, thank you!
$endgroup$
– Ash
Mar 28 at 20:41




$begingroup$
Works perfectly, thank you!
$endgroup$
– Ash
Mar 28 at 20:41












$begingroup$
@Ash You are very welcome! Thank you for the accept as well!
$endgroup$
– MarcoB
Mar 28 at 20:42





$begingroup$
@Ash You are very welcome! Thank you for the accept as well!
$endgroup$
– MarcoB
Mar 28 at 20:42













$begingroup$
That's nice! What AspectRatio did you use?
$endgroup$
– mjw
Mar 28 at 21:49




$begingroup$
That's nice! What AspectRatio did you use?
$endgroup$
– mjw
Mar 28 at 21:49












$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
Mar 28 at 22:18




$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
Mar 28 at 22:18

















draft saved

draft discarded
















































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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

Boston (Lincolnshire) Stedsbyld | Berne yn Boston | NavigaasjemenuBoston Borough CouncilBoston, Lincolnshire

Trouble understanding the speech of overseas colleaguesHow can I better understand manager or clients with strong accents?Adding more movement and speech at the fundamental level to a highly-sedentary job?Difficulty in understanding Manager's accent(language and communication)How to adjust yourself where your colleagues are not understanding to you?Understanding manager's expectationsForeigner and colleagues using slangHaving difficulty understanding meetingsHow do you breathe when giving a speech?Trouble Waking Up for Emergencies (On-Call)Problems with colleaguesColleagues feeling insecure when I do my work

Is the concept of a “numerable” fiber bundle really useful or an empty generalization?Non trivial vector bundle over non-paracompact contractible spaceExample of fiber bundle that is not a fibrationGlobalising fibrations by schedulesFiber bundle = principal bundle + fiber?Numerable covers from the point of view of Grothendieck topologiesGlobal sections for torus fiber bundleAre there analogs of smooth partitions of unity and good open covers for PL-manifolds?Two natural maps asssociated with the nerve of a coverDescent theory, fibrations, and bundlesIn which sense are Euler-Lagrange PDE's on fiber bundles quasi-linear?What is the local structure of a fibration?Complete proof of Homotopy invariance of a numerable fiber bundle based on CHPLocally trivial fibration over a suspension