# Example: Degree wheel

Published 2008-09-24 | Author: Dario Orescanin

A degree wheel inspired by an example on the PSTricks website.

Do you have a question regarding this example, TikZ or LaTeX in general? Just ask in the LaTeX Forum.
Oder frag auf Deutsch auf TeXwelt.de. En français: TeXnique.fr.

% A simple compass
% Author: Dario Orescanin

\documentclass{minimal}
\usepackage{tikz}
\begin{document}

\begin{centering}

% Define a few constants for easy configuration

\begin{tikzpicture}[scale=4]

% adding a subtle gray tone to add a bit of "personality"

\draw[fill=black] (0,0) circle (.02mm);
\node[draw, circle, inner sep=.2mm] (a) at (0,0) {};

% helper lines
\foreach \x in {0, 45, ..., 360} \draw[very thin, gray!40] (a) -- (\x:\radius);

% main lines

% labels and longer lines at every 10 degrees
\foreach \x in {0,10,...,350}
{
};

% lines at every 5 degrees

\end{tikzpicture}
\end{centering}

\end{document}