Matplotlib: build one chart that tells one story
10 steps · about 4 h 30 min · Beginner
- Getting started — Matplotlib 3.11.2 documentation (doc, matplotlib.org, 15 min)
Install matplotlib and draw your first plot, so you have a working setup before any storytelling.
- Quick start guide — Matplotlib 3.11.2 documentation (tutorial, matplotlib.org, 40 min)
It teaches the Figure and Axes model and the explicit fig, ax style that every later step builds on.
- The Lifecycle of a Plot — Matplotlib 3.10.8 documentation (tutorial, matplotlib.org, 30 min)
It walks one chart from raw data to a saved, customised figure, which is the workflow you will repeat.
- The annotation habit (guide, Analytics Made Simple, 15 min)
It explains the storytelling principle first: grey out most of the data, colour the one thing that matters, and don't distort the axis.
- Annotations — Matplotlib 3.11.2 documentation (doc, matplotlib.org, 30 min)
It is the official reference for annotate, xy, xytext and arrows, the tools that point at your key finding.
- Highlight a line in line plot (tutorial, The Python Graph Gallery, 20 min)
It shows the muted-lines-plus-one-bold-line technique with working code you can adapt.
- Annotating a Plot (tutorial, vizlearn.in, 20 min)
It covers placing text and reference lines so your annotations stay correct when the data changes.
- Customizing Matplotlib with style sheets and rcParams — Matplotlib 3.11.2 documentation (doc, matplotlib.org, 25 min)
Once the story works, style sheets and rcParams let you strip clutter and keep a consistent look.
- storytelling-with-data (Python + matplotlib) (repo, GitHub, empathy87, 45 min)
The notebooks rebuild polished example charts, so you can study a finished story chart and copy its approach.
- Matplotlib (reference, The Python Graph Gallery, 30 min)
Use it as the last step: pick a chart type and annotation example, then build your own one-story chart.