Python Plotting With Matplotlib - Real Python
Python Plotting With Matplotlib
Austin Cepalia 18 Lessons 1h 46m basics data-science data-vizA picture is worth a thousand words, and with Python's matplotlib 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 in matplotlib is relatively simple, but skillfully commanding the remaining 98% of the library can be daunting.
In this beginner-friendly course, you'll learn about plotting in Python with matplotlib 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 the numpy.random module to generate "toy" data, drawing samples from different statistical distributions. If you don't already have matplotlib installed, see the documentation for a walkthrough before proceeding.
What's Included:
- 18 Lessons
- Video Subtitles and Full Transcripts
- Translated Subtitles in 8 Languages
- 1 Downloadable Resource
- Accompanying Text-Based Tutorial
- 4 Hands-On Coding Exercises
- Q&A With Python Experts: Ask a Question
- Certificate of Completion
Downloadable Resources:
Related Learning Paths:
Start NowPython Plotting With Matplotlib
18 Lessons 1h 46m
- 1. Python Plotting With Matplotlib (Overview) 03:01
- 2. NumPy Review (Optional) 07:57
- 3. Pyplot and PyLab 03:51
- 4. Object Hierarchy 01:59
- 5. Stateful vs Stateless Approach 05:37
- 6. Your First Plot 09:25
- 7. Exercise: Draw a Titled Line Plot 08:00
- 8. Working With Multiple Subplots 11:09
- 9. Exercise: Put Two Plots Side by Side 08:00
- 10. Advanced Plotting 08:03
- 11. Exercise: Draw a Labeled Scatter Plot 08:00
- 12. The Figures Behind the Scenes 02:55
- 13. Creating a Colored Matrix 06:56
- 14. Exercise: Turn a Matrix Into a Heatmap 08:00
- 15. Plotting With Pandas 07:35
- 16. Configuring Styles 02:46
- 17. Interactive Mode 01:29
- 18. Python Plotting With Matplotlib (Summary) 01:27
About Austin 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 AustinEach tutorial at Real Python is created by a team of developers so that it meets our high quality standards. The team members who worked on this tutorial are:
Dan
Joanna
Sadie
Tappan
Brad
Adriana
Related Courses:
Plot With pandas: Python Data Visualization Basics
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 .