Example: Polar plot of sine based function

Published 2017-01-01 | Author: Stefan Kottwitz

The sine function is a well known periodic function. Choose an argument factor, which doesn’t divide the period well, and add another sine function with a different factor, and you can see a complicated path around the origin.

This plot was originally made for my blog post on TikZ.de: http://tikz.de/periodisch/

See also the other polar sine plot examples there.

Download as: [PDF] [TEX]  •  [Open in Overleaf]

Polar plot of sine based function

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.

\documentclass[border=10pt]{standalone}
\usepackage{pgfplots}
\usepgfplotslibrary{polar}
\begin{document}
\begin{tikzpicture}
  \begin{polaraxis}[
      domain = -3600:3600,
      samples = 4000
    ]
    \addplot[blue!50!black] {1 - sin(50*x/49) - sin(8*x)};
  \end{polaraxis}
\end{tikzpicture}
\end{document}

Comments

Adding comments is currently not enabled.