← Winnitude! Search  ·  Reader Mode (841 ms)
Links: Stay in Reader Retro Site Converter Retro Mode: OFF Original Page ↗
REAL PYTHON · Real Python · 40 LINKS

Python Plotting With Matplotlib - Real Python

Go to the next lesson

Python Plotting With Matplotlib

Austin Cepalia 18 Lessons 1h 46m basics data-science data-viz

A 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 pandas and matplotlib

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 Now

Python Plotting With Matplotlib

18 Lessons 1h 46m

  1. 1. Python Plotting With Matplotlib (Overview) 03:01
  2. 2. NumPy Review (Optional) 07:57
  3. 3. Pyplot and PyLab 03:51
  4. 4. Object Hierarchy 01:59
  5. 5. Stateful vs Stateless Approach 05:37
  6. 6. Your First Plot 09:25
  7. 7. Exercise: Draw a Titled Line Plot 08:00
  8. 8. Working With Multiple Subplots 11:09
  9. 9. Exercise: Put Two Plots Side by Side 08:00
  10. 10. Advanced Plotting 08:03
  11. 11. Exercise: Draw a Labeled Scatter Plot 08:00
  12. 12. The Figures Behind the Scenes 02:55
  13. 13. Creating a Colored Matrix 06:56
  14. 14. Exercise: Turn a Matrix Into a Heatmap 08:00
  15. 15. Plotting With Pandas 07:35
  16. 16. Configuring Styles 02:46
  17. 17. Interactive Mode 01:29
  18. 18. Python Plotting With Matplotlib (Summary) 01:27
Start Now

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 Austin

Each 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 .

← Browse All Courses