Take the 2-minute tour ×
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.

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

1 Answer 1

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.