# draw cone with gradient fill in latex, tikz [duplicate]

Possible Duplicate:
3D bodies in TikZ

How can I draw the following diagram in latex (obviously will look better when drawn in latex), considering I would like to annotate the diagram with text and arrows etc?

The main difficulties i'm facing is finding an efficient way of drawing a cone, for example when I draw this in powerpoint I had to insert a triangle and then overlay a circle to create the cone. There must be a better way in latex, with tikz?

## marked as duplicate by hpesoj626, Juan A. Navarro, Mensch, Stefan Kottwitz♦Feb 1 '13 at 10:54

• Dear Kate, please show us what you have been producing so far. It makes it a lot easier for people to see what you have tried. (as a side note, you could scour texample.net which I believe have something similar) – zeroth Feb 1 '13 at 9:03
• With Tikz, you can do the same as in powerpoint: draw first a filled triangle, then a circle (ellipse here) – Lionel MANSUY Feb 1 '13 at 9:09
• Shaded cones have been drawn in 3D bodies in TikZ, so I suggest to close this as a duplicate. – Stefan Kottwitz Feb 1 '13 at 9:27

Here is my solution based on this answer.

\documentclass{scrartcl}
\usepackage[margin=15mm]{geometry}
\usepackage{tikz}

\begin{document}
\begin{tikzpicture}
\shade[top color=blue!40!white,opacity=0.75] (-1,0) arc (180:0:1cm and 0.5cm) -- (0,-3) -- cycle;
\draw [thick](-1,0) arc (180:360:1cm and 0.5cm) -- (0,-3) -- cycle;
\draw [thick](-1,0) arc (180:0:1cm and 0.5cm);
\end{tikzpicture}
\end{document}


• \usetikzlibrary{3d,calc} is not actually used here :) – hpesoj626 Feb 1 '13 at 9:54
• @hpesoj626, you are right indeed! As I wrote above, this is based on another answer and while I was removing the unnecessary parts, it seems I have missed {3d,calc}. Thanks for the correct alert and cheers :) – Pouya Feb 1 '13 at 10:02
• @Pouya the edges of the cone are a bit visible through the base. I think a better result can be obtained by drawing first a shaded triangle, and then painting a filled ellipse on top of it for the base. – JLDiaz Feb 1 '13 at 10:12