During this period I work with matplotlib. I learned a lot of examples and was able to modify it to satisfy some of my needs. But I would like to better understand the general structure of the library. For this reason, in addition to reading a large number of tutorials on the Internet, I also bought the book "Matplotlib for Python Developers" from Tosi. Although it is full of good examples, I still do not fully understand the relationship between all the different levels.
The book clearly explains that matplotlib has 3 main βmodesβ:
1) pylab to work similar to Matlab
2) pyplot to work procedurally
3) complete OO system
As for the objects of the OO system, the book lists 3 levels:
1) FigureCanvas, the container class for the Figure instance
2) Figure, container for Axes instances
3) Axes, areas in which the main elements (lines, points, text ...) are contained
The problem is that while reading the official documentation, I also came across the concepts of Backends and Artists. Although I understand their basic logic, I am completely embarrassed by their respect for previous classifications. In particular, are Artists an intermediate level between a FigureCanvas and a drawing, or is this hierarchy not appropriate in this case?
I would appreciate some clarification, eventually also referring to other documentation that I might have skipped. Thank.
source
share