I had the same problem until I found this tutorial:
https://github.com/rougier/matplotlib-tutorial
If you wan something deeper the same person has written a book:
https://github.com/rougier/matplotlib-tutorial
If you wan something deeper the same person has written a book:
Regarding the different APIs, this page [1] from the documentation attempts to compare them and provide code that generates the same result using the the different APIs.
[1] https://matplotlib.org/devdocs/users/explain/api_interfaces....