I spent longer today than I care to admit figuring out how to do (nested) for loops in TikZ to make this figure.

I still think the syntax for both control flow as well as macros in TikZ is poorly documented; there aren't any good examples and I had to experiment until it worked.

#TeXLaTeX #TikZ