
Mastering Matplotlib
By :

The artist layer constitutes the bulk of what matplotlib actually does—the generation of the plots for the purpose of display, manipulation, and publication. Most work in the artist layer is performed by a number of classes, most of which are derived from the Artist
base class.
The artist layer is concerned with things such as the lines, shapes, axes, text, and so on. These are the subclasses of the Artist
class that define things such as the following:
The Artist
subclasses can be classified into one of the following two groups:
The following two sections provide more details about these groups.
The matplotlib artist primitives are classes of graphical objects that are supposed to be painted on a figure's canvas. These include, but are not limited to, the following:
Line2D
Change the font size
Change margin width
Change background colour