Getting ready

Let's begin our introduction with a look at the anatomy of a Matplotlib plot, in the following figure:

Matplotlib uses a hierarchy of objects to display all of its plotting items in the output. This hierarchy is key to understanding everything about Matplotlib. The Figure and Axes objects are the two main components of the hierarchy. The Figure object is at the top of the hierarchy. It is the container for everything that will be plotted. Contained within the Figure is one or more Axes object(s). The Axes is the primary object that you will interact with when using Matplotlib and can be more commonly thought of as the actual plotting surface. The Axes contains the x or y axis, points, lines, markers, labels, legends, and any other useful item that is plotted.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset