# tikz: drawing a parametrised curve

With tikz I can draw a circle in the following way:

\documentclass{minimal}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[x=2cm/2]
\pgfplothandlerlineto
\pgfusepath{stroke}
\end{tikzpicture}
\end{document}


The output is:

I try to do the same thing using parametrisation:

\begin{tikzpicture}[x=2cm/2]
\pgfplothandlerlineto
\pgfusepath{stroke}
\end{tikzpicture}


How to draw a parametrised curve?

The \sin and \cos function expect their arguments in degrees, so if you change \pgfplotfunction{\alpha}{0, 0.01, ..., 6.28}... to \pgfplotfunction{\alpha}{0,5,10,...,360}... then all is well.

The full code:

\documentclass{minimal}
\usepackage{tikz}
\begin{document}
\newcommand\rad{1}% better to define outside of environment

\begin{tikzpicture}[x=2cm/2]
\pgfplothandlerlineto

I have used \x rather than \alpha. Of course, using \alpha is fine but it hurts my sense of aesthetics :)