Putting a 2D region plot under a 3D plot The Next CEO of Stack OverflowCan'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?

Can a Bladesinger Wizard use Bladesong with a Hand Crossbow?

How to get from Geneva Airport to Metabief?

Why is quantifier elimination desirable for a given theory?

Can we say or write : "No, it'sn't"?

Why is the US ranked as #45 in Press Freedom ratings, despite its extremely permissive free speech laws?

Why don't programming languages automatically manage the synchronous/asynchronous problem?

Is a distribution that is normal, but highly skewed considered Gaussian?

Easy to read palindrome checker

Where do students learn to solve polynomial equations these days?

Do I need to write [sic] when a number is less than 10 but isn't written out?

If Nick Fury and Coulson already knew about aliens (Kree and Skrull) why did they wait until Thor's appearance to start making weapons?

Solving system of ODEs with extra parameter

Unclear about dynamic binding

Some questions about different axiomatic systems for neighbourhoods

Would a grinding machine be a simple and workable propulsion system for an interplanetary spacecraft?

Why this way of making earth uninhabitable in Interstellar?

Math-accent symbol over parentheses enclosing accented symbol (amsmath)

Bartok - Syncopation (1): Meaning of notes in between Grand Staff

0 rank tensor vs 1D vector

Is wanting to ask what to write an indication that you need to change your story?

What was the first Unix version to run on a microcomputer?

Which one is the true statement?

How to invert MapIndexed on a ragged structure? How to construct a tree from rules?

Running a General Election and the European Elections together



Putting a 2D region plot under a 3D plot



The Next CEO of Stack OverflowCan'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
    2 days ago










  • $begingroup$
    Try This p = Graphics3D[Polygon[1, 0, 0, 0, 1, 0, 0, 0, 1]]
    $endgroup$
    – Alrubaie
    2 days ago















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
    2 days ago










  • $begingroup$
    Try This p = Graphics3D[Polygon[1, 0, 0, 0, 1, 0, 0, 0, 1]]
    $endgroup$
    – Alrubaie
    2 days ago













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 yesterday









J. M. is slightly pensive

98.8k10311467




98.8k10311467










asked 2 days ago









AshAsh

235




235











  • $begingroup$
    do you want you Polygon flat under the region of 3D !?
    $endgroup$
    – Alrubaie
    2 days ago










  • $begingroup$
    Try This p = Graphics3D[Polygon[1, 0, 0, 0, 1, 0, 0, 0, 1]]
    $endgroup$
    – Alrubaie
    2 days ago
















  • $begingroup$
    do you want you Polygon flat under the region of 3D !?
    $endgroup$
    – Alrubaie
    2 days ago










  • $begingroup$
    Try This p = Graphics3D[Polygon[1, 0, 0, 0, 1, 0, 0, 0, 1]]
    $endgroup$
    – Alrubaie
    2 days ago















$begingroup$
do you want you Polygon flat under the region of 3D !?
$endgroup$
– Alrubaie
2 days ago




$begingroup$
do you want you Polygon flat under the region of 3D !?
$endgroup$
– Alrubaie
2 days ago












$begingroup$
Try This p = Graphics3D[Polygon[1, 0, 0, 0, 1, 0, 0, 0, 1]]
$endgroup$
– Alrubaie
2 days ago




$begingroup$
Try This p = Graphics3D[Polygon[1, 0, 0, 0, 1, 0, 0, 0, 1]]
$endgroup$
– Alrubaie
2 days ago










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
    2 days ago










  • $begingroup$
    @Ash You are very welcome! Thank you for the accept as well!
    $endgroup$
    – MarcoB
    2 days ago











  • $begingroup$
    That's nice! What AspectRatio did you use?
    $endgroup$
    – mjw
    2 days 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
    2 days ago











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
    2 days ago










  • $begingroup$
    @Ash You are very welcome! Thank you for the accept as well!
    $endgroup$
    – MarcoB
    2 days ago











  • $begingroup$
    That's nice! What AspectRatio did you use?
    $endgroup$
    – mjw
    2 days 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
    2 days ago















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
    2 days ago










  • $begingroup$
    @Ash You are very welcome! Thank you for the accept as well!
    $endgroup$
    – MarcoB
    2 days ago











  • $begingroup$
    That's nice! What AspectRatio did you use?
    $endgroup$
    – mjw
    2 days 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
    2 days ago













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 2 days ago









MarcoBMarcoB

38.2k556114




38.2k556114











  • $begingroup$
    Works perfectly, thank you!
    $endgroup$
    – Ash
    2 days ago










  • $begingroup$
    @Ash You are very welcome! Thank you for the accept as well!
    $endgroup$
    – MarcoB
    2 days ago











  • $begingroup$
    That's nice! What AspectRatio did you use?
    $endgroup$
    – mjw
    2 days 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
    2 days ago
















  • $begingroup$
    Works perfectly, thank you!
    $endgroup$
    – Ash
    2 days ago










  • $begingroup$
    @Ash You are very welcome! Thank you for the accept as well!
    $endgroup$
    – MarcoB
    2 days ago











  • $begingroup$
    That's nice! What AspectRatio did you use?
    $endgroup$
    – mjw
    2 days 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
    2 days ago















$begingroup$
Works perfectly, thank you!
$endgroup$
– Ash
2 days ago




$begingroup$
Works perfectly, thank you!
$endgroup$
– Ash
2 days ago












$begingroup$
@Ash You are very welcome! Thank you for the accept as well!
$endgroup$
– MarcoB
2 days ago





$begingroup$
@Ash You are very welcome! Thank you for the accept as well!
$endgroup$
– MarcoB
2 days ago













$begingroup$
That's nice! What AspectRatio did you use?
$endgroup$
– mjw
2 days ago




$begingroup$
That's nice! What AspectRatio did you use?
$endgroup$
– mjw
2 days 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
2 days 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
2 days ago

















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

រឿង រ៉ូមេអូ និង ហ្ស៊ុយលីយេ សង្ខេបរឿង តួអង្គ បញ្ជីណែនាំ

QGIS export composer to PDF scale the map [closed] Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?Print Composer QGIS 2.6, how to export image?QGIS 2.8.1 print composer won't export all OpenCycleMap base layer tilesSave Print/Map QGIS composer view as PNG/PDF using Python (without changing anything in visible layout)?Export QGIS Print Composer PDF with searchable text labelsQGIS Print Composer does not change from landscape to portrait orientation?How can I avoid map size and scale changes in print composer?Fuzzy PDF export in QGIS running on macSierra OSExport the legend into its 100% size using Print ComposerScale-dependent rendering in QGIS PDF output

PDF-ში გადმოწერა სანავიგაციო მენიუproject page