The Mandelbrot Fractal Set
This is one of the most well-known fractal sets. It is defined by the following recursion:
An example of the Mandelbrot Fractal Set is shown below:
To generate this Mandelbrot Set in Stata you use the in-built matrix language Mata with the following commands:
Copy the above commands into a Stata do-file to run.
Please Note: This took about 15 minutes to render on my computer. If you have an older or less powerful computer this can take up to 3 hours to render.
Stata has a wide range of graphs that are very customisable. To learn more about Stata graphs and how to use them check out the book A Visual Guide to Stata Graphics available at our bookstore.