# How can i draw ellipse in 3D? [closed]

I’m using mathematica 9.0 and want to draw an Ellipse in 3D. I notice that there is “Sphere”, but not ellipse... what is the easy way do draw one?

Thanks

• Look for Ellipsoid in the documentation... – Fraccalo Jul 10 '18 at 14:42
• as in Graphics3D[Ellipsoid[{0, 0, 0}, {4, 3, 2}]]? or Graphics3D[ Table[{Hue[RandomReal[]], Ellipsoid[RandomReal[50, {3}], RandomReal[{1, 5}, 3]]}, {100}]] – chris Jul 10 '18 at 14:43
• Welcome! To make the most of Mma.SE start by taking the tour now. It will help us to help you if you write an excellent question. Edit if improvable, show due diligence, give brief context, include minimal working example of code and data in formatted form. As you receive give back, vote and answer questions, keep the site useful, be kind, correct mistakes and share what you have learned. – rhermans Jul 10 '18 at 15:45
• @rhermans He wrote ellipse, not ellipsoid. I do not think we should try to second guess what people mean. It is entirely reasonable to want to draw an ellipse in 3D (after all it's a conic section, it's often drawn in 3D to illustrate that). (Also, the edit made my answer look pretty stupid and prompted people to point that out.) – Szabolcs Jul 10 '18 at 16:11
• @rhermans I did wonder if OP meant ellipse or ellipsoid because he mentions Sphere. It is entirely possible that he meant ellipsoid ... but he wrote ellipse (twice). He should clarify. – Szabolcs Jul 10 '18 at 16:29

## 2 Answers

When I wrote this answer the question clearly asked for an ellipse.

Look up ParametricPlot3D and use the equation of an ellipse.

ParametricPlot3D[{2 Cos[u], Sin[u], 0}, {u, 0, 2 Pi}]


• Ellipse =!= Ellipsoid... – Jens Jul 10 '18 at 16:08
• @Jens Of course it's not the same. The original poster wrote ellipse (not once but twice). Then someone else edited the post and changed it to ellipsoid (only after I wrote the answer). The original poster also mentioned Sphere[], so he might have meant ellipsoid, but I am not going to play that kind of guessing game. If he asked for an ellipse, he will get an ellipse from me. – Szabolcs Jul 10 '18 at 16:10
• Sorry - didn't know this, but have been annoyed by the same issue several times before. In this case it would be a dupe of mathematica.stackexchange.com/q/6526/245. – Jens Jul 10 '18 at 16:16
• Sorry, it was my fault. – rhermans Jul 10 '18 at 16:28
ParametricPlot3D[{3 Cos[u] Cos[v], 2 Cos[u] Sin[v], 1 Sin[u]}  (*-(\[Pi]/2)<u<\[Pi]/2,0<v<2\[Pi] *), {u, -Pi/2,Pi/2}, {v, 0, 2 Pi}]


plots an ellipsoid!