1

I want to draw a glass of wine, as the following example. enter image description here

I could only do half the Cup, missing the feet and strong color of the wine. Also need to delete the axes, to leave only the figure.

\documentclass[12pt]{article}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}

\begin{axis}[view={40}{10}]
\addplot3[surf,z buffer=sort,
samples=30,domain=-1:0,y domain=0:2*pi]
({sqrt(1-x^2) * cos(deg(y))},
{sqrt( 1-x^2 ) * sin(deg(y))},
x);

\end{axis}
\end{tikzpicture}
\end{document}

enter image description here

  • 9
    Questions about how to draw specific graphics that just post an image of the desired result are really not reasonable questions to ask on the site. Please post a minimal compilable document showing that you've tried to produce the image and then people will be happy to help you with any specific problems you may have. See minimal working example (MWE) for what needs to go into such a document. – samcarter_is_at_topanswers.xyz Feb 26 '17 at 13:46
  • 7
    One never should fill a glass of wine so much! – Bernard Feb 26 '17 at 14:37
  • 4
    Perhaps you can start with how to draw a coffee cup. – Werner Feb 26 '17 at 15:04

Browse other questions tagged or ask your own question.