Skip to content

tkz-fn examples

Polar curves

Polar curves
View TeX code
% !TEX TS-program = lualatex
\documentclass[border=12pt]{standalone}
\usepackage{tkz-fn}
\begin{document}
\begin{tikzpicture}
  \tkzFnInit[xmin=-3,xmax=3,ymin=-3,ymax=3]
  \tkzFnGrid
  \tkzFnAxes[ticks=false]
  % four-leaved rose and cardioid
  \tkzFnPolar[thick,red,domain=0:2*pi,samples=400]{2*cos(2*t)}
  \tkzFnPolar[thick,blue,domain=0:2*pi,samples=400]{1-sin(t)}
  \tkzFnText[text=red](2.3,2.6){$\rho=2\cos 2\theta$}
  \tkzFnText[text=blue](-2.1,-2.6){$\rho=1-\sin\theta$}
\end{tikzpicture}
\end{document}