# Plot Polar Coordinates Graphs

Googling “tikz tutorial”, one can find several useful PDF documents which are easy to follow, such as the first two results.

1. PGF/TikZ - Graphics for $\rm \LaTeX$ —A tutorial by Meik Hellmund
2. A very minimal introduction to TikZ by Jacques Crémer

The second PDF document covers plotting graphs in rectangular coordinates. How about polar coordinates?

It’s easy to find a solution online, but understanding the code and adapting them according to your needs are much harder. One has to make use of “cs”, which stands for “coordinate system”. If one is too lazy to read more webpages, then one may use the code below.

When I drew figures with TikZ a recent post on limits of composite functions on $\R^n$, I found a way to construct random region with TikZ in a $\rm \TeX$–$\rm \LaTeX$ Stack Exchange question.1 This inspired me to come up with the following graph.

## Source code

• I got the idea of for loop in TikZ from TikZ and PGF Manual.
• I learnt the syntax for plotting functions from the PDF in item (2).

1. Refer to TikZ: Arbitrary shapes and filling? for details.