August 2015
Beginner
264 pages
5h 57m
English

In this chapter, we’ll start by learning about patches in matplotlib that allow us to draw geometric shapes, such as circles, triangles, and polygons. We’ll then learn about matplotlib’s animation support and write a program to animate a projectile’s trajectory. In the final section, we’ll learn how to draw fractals—complex geometric shapes created by the repeated applications of simple geometric transformations. Let’s get started!
In matplotlib, patches allow us to draw geometric shapes, each of which we refer to as a patch. You can specify, for example, ...
Read now
Unlock full access