Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Lesson

This lesson is for members only. Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Hint: You can adjust the default video playback speed in your account settings.
Hint: You can set your subtitle preferences in your account settings.
Sorry! Looks like there’s an issue with video playback 🙁 This might be due to a temporary outage or because of a configuration issue with your browser. Please refer to our video player troubleshooting guide for assistance.

Object Hierarchy

One important, big-picture concept for matplotlib is its object hierarchy. If you’ve ever worked through an introductory matplotlib tutorial, you may have started with a little bit of code that looks like this:

Python
plt.plot([1,2,3,4],[1,4,9,16])

This code plots a straight line. The problem is that this small amount of code hides the fact that a plot like this is really made up of a bunch of individual objects, and those objects contain their own objects. It’s a hierarchy of objects that all come together to make the beautiful graphics you’ll see in this course.

Become a Member to join the conversation.