Python Plotting With Matplotlib
A picture is worth a thousand words, and with Python’smatplotlib library, it fortunately takes far less than a thousand words of code to create a production-quality graphic.
However,matplotlib is also a massive library, and getting a plot to look just right is often achieved through trial and error. Using one-liners to generate basic plots inmatplotlib is relatively simple, but skillfully commanding the remaining 98% of the library can be daunting.
In thisbeginner-friendly course, you’ll learn about plotting in Python withmatplotlib by looking at the theory and following along with practical examples. While learning by example can be tremendously insightful, it helps to have even just a surface-level understanding of the library’s inner workings and layout as well.
By the end of this course, you’ll:
- Know the differences between PyLab and Pyplot
- Grasp the key concepts in the design of
matplotlib - Understand
plt.subplots() - Visualize arrays with
matplotlib - Plot by combining
pandasandmatplotlib
This course assumes you know a tiny bit of NumPy. You’ll mainly use thenumpy.random module to generate “toy” data, drawing samples from different statistical distributions. If you don’t already havematplotlib installed, see thedocumentation for a walkthrough before proceeding.
What’s Included:
- 14 Lessons
- Video Subtitles and Full Transcripts
- 1 Downloadable Resource
- Accompanying Text-Based Tutorial
- Q&A With Python Experts: Ask a Question
- Certificate of Completion
Downloadable Resources:
Related Learning Paths:
Python Plotting With Matplotlib
14 Lessons 1h 14m
- 1. Python Plotting With Matplotlib (Overview)03:01
- 2. NumPy Review (Optional)07:57
- 3. Pyplot and PyLab03:52
- 4. Object Hierarchy02:00
- 5. Stateful vs Stateless Approach05:37
- 6. Your First Plot09:25
- 7. Working With Multiple Subplots11:09
- 8. Advanced Plotting08:03
- 9. The Figures Behind the Scenes02:56
- 10. Creating a Colored Matrix06:57
- 11. Plotting With Pandas07:36
- 12. Configuring Styles02:46
- 13. Interactive Mode01:29
- 14. Python Plotting With Matplotlib (Summary)01:27
AboutAustin Cepalia
Austin is a video tutorial author at Real Python. He graduated with a BS in CS from Rochester Institute of Technology in 2023, and now he writes software to support the semiconductor industry.
» More about AustinParticipant Comments
Glenn Lehman
Great learning experience!
I appreciated the advise to type out all the code. This allowed me to modify some of the items and see how this changed the output. Plus my typing skills allowed me to practice some basic debugging.
Thank you.










