Googling “tikz tutorial”, one can find several useful PDF documents which are easy to follow, such as the first two results.
- PGF/TikZ - Graphics for $\rm \LaTeX$ —A tutorial by Meik Hellmund
- 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.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
- 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).