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

How can I have arrow head appear properly on the arced curve?

\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{arrows,decorations.markings,calc,fadings,decorations.pathreplacing, patterns, decorations.pathmorphing, positioning}
\begin{document}
\begin{tikzpicture}[line cap = round, line join = round, >=triangle 45]
\draw[->] (-3,0) -- (3,0) node[above, scale = .75] {$\rho$};
\draw[->] (0,0) -- (0,4) node[right, scale = .75] {$z$};
\draw (-3,4) parabola bend (0,0) (3,4);
\filldraw[top color = yellow!70, bottom color = green!80] (1.5,1) circle (.15cm);
\draw[fill = white] (-.15,3) arc (135:340:.2cm and .1cm);
\draw[->] (-.15,3) arc (135:340:.2cm and .1cm);
\end{tikzpicture}
\end{document}

enter image description here

share|improve this question
up vote 3 down vote accepted

Solution adapted from Peter Grill's:

\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{arrows,decorations.markings,calc,fadings,decorations.pathreplacing, patterns, decorations.pathmorphing, positioning}

\newcommand{\AxisRotator}[1][rotate=0]{%
    \tikz \draw[x=.5em,y=1.25em,line width=.2ex,-stealth,#1] (0,0) arc (-150:150:1 and 1);%
}

\begin{document}
\begin{tikzpicture}[line cap = round, line join = round, >=triangle 45]
\draw[->] (-3,0) -- (3,0) node[above, scale = .75] {$\rho$};
\draw[->] (0,0) -- (0,4) node[right, scale = .75] {$z$};
\draw (-3,4) parabola bend (0,0) (3,4);
\filldraw[top color = yellow!70, bottom color = green!80] (1.5,1) circle (.15cm);
\draw (0,3) node {\AxisRotator[rotate=-90]}; 
\end{tikzpicture}
\end{document}

enter image description here

share|improve this answer

Your Answer

 
discard

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.