Sign up ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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?

enter image description here

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?

share|improve this question

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

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

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 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
thanks for the link – KatyB Feb 1 '13 at 9:44

1 Answer 1

up vote 5 down vote accepted

Here is my solution based on this answer.


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

enter image description here

share|improve this answer
\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

Not the answer you're looking for? Browse other questions tagged or ask your own question.