TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to make a circle in the xy plane that has walls that slope up. How can I do this? Basically a bucket with a bigger opening then base.

\usepackage{tikz, tikz-3dplot} 
  \begin{tikzpicture}[line join = round, line cap = round, >=triangle 45,
    \draw[->] (0,0,0) -- (3,0,0) node[left, scale = .75] {$x$};
    \draw[->] (0,0,0) -- (0,3,0) node[right, scale = .75] {$y$};
    \draw[->] (0,0,0) -- (0,0,2) node[above, scale = .75] {$z$};        
share|improve this question
Do you want something like a cylinder? – cacamailg Apr 14 '13 at 23:47
@cacamailg but increasing in size as you move up. – dustin Apr 14 '13 at 23:49

Try this! I took the code from here http://www.texample.net/tikz/examples/dandelin-spheres/ and did some simplifications.



\def\h{2.5}% height of cup
\def\r{2}% reason of two radius

\foreach \t in {5,10,...,360}
    \draw[magenta] ({cos(\t)},{sin(\t)},0) --({2*cos(\t)},{2*sin(\t)},{2.0*\h});
\draw[magenta,very thick] (1,0,0) % lower circle
    \foreach \t in {5,10,...,360}
\draw[magenta,very thick] (1,0,0) % upper circle
    \foreach \t in {5,10,...,360}


share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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