Matplotlib
Master Python visualization — the Figure/Axes model, every core chart type, deep customization, multi-panel layouts, theming, and the design principles for charts that inform.
Your progress
0 / 27 chapters
0%
01
Foundations
The Figure/Axes model, the two interfaces, and your first exported chart.
- 8mWhy MatplotlibWhat Matplotlib is, its place in the stack, and when to reach for it.
- 10mFigure & AxesThe anatomy of a Matplotlib plot — Figure, Axes, and the parts of a chart.
- 9mThe Two Interfacespyplot (implicit) vs object-oriented (explicit) — and which to use.
- 8mYour First PlotBuild a complete, labelled line chart from data end to end.
- 7mShowing & SavingDisplay interactively or export to PNG, PDF and SVG at the right quality.
02
Core Plot Types
Line, scatter, bar, histogram and specialised charts — and when to use each.
- 9mLine PlotsThe workhorse chart for trends and continuous data.
- 8mScatter PlotsShow the relationship between two variables, point by point.
- 9mBar ChartsCompare values across categories — vertical, horizontal and grouped.
- 8mHistogramsShow the distribution of a single numeric variable.
- 9mBox, Pie & MoreBox plots, pie charts, area and error bars — and when each fits.
03
Customizing Plots
Colours, line styles, labels, legends, ticks, limits and annotations.
- 8mColorsSpecify colors many ways, and use them to communicate clearly.
- 7mMarkers & Line StylesDistinguish series with dashes, markers and widths — beyond colour alone.
- 8mLabels, Titles & LegendsThe text that makes a chart self-explanatory.
- 8mTicks & LimitsControl the axis range, tick positions and tick labels.
- 8mAnnotations & TextPoint at what matters with text, arrows and reference lines.
04
Figures & Layout
Subplots, complex layouts, shared/twin axes, sizing and clean styling.
- 9mSubplotsPut multiple plots in one figure with a grid of Axes.
- 8mComplex LayoutsUnequal subplot sizes with GridSpec and mosaic layouts.
- 8mShared & Twin AxesLink axes across subplots, and plot two scales on one chart.
- 6mFigure Size & DPIControl physical size and resolution for screen and print.
- 7mSpines & GridsRemove chart junk — clean up borders and add helpful gridlines.
05
Styling & Themes
Stylesheets, colormaps, typography and date axes.
- 8mStyles & rcParamsRestyle every chart at once with stylesheets and global settings.
- 9mColormapsMap numbers to colour correctly — sequential, diverging and categorical.
- 7mText & FontsControl typography, math notation and text placement.
- 7mDates on AxesPlot time series with well-formatted, non-overlapping date ticks.
06
Applied Matplotlib
Integration with pandas/NumPy, reusable recipes and design best practices.
