ABSTRACT

Fractals were introduced in Chapter 1 of this book using the Turtle library. In this chapter, the reader is shown how to plot fractals using matplotlib. The fractal dimension is defined and calculated for simple fractals. The reader is then introduced to the box-counting technique used to compute the fractal dimension of images. Next is an introduction to multifractals, computing their multifractal spectra of dimensions, and looking at applications in the real world. The chapter ends with the Python program for plotting the Mandelbrot set, the most famous multifractal of them all.