Introduction to Data Visualization with Matplotlib
Learn to build, customize and save Matplotlib charts in Python, including time-series plots, bar charts, histograms and scatter plots.
Charts and figures can surface patterns in a dataset that a table of numbers keeps hidden, and they make findings easier to pass on to others. Matplotlib, a Python library, supplies the building pieces for such plots. You learn to place data on axes and style what you draw. You also chart values recorded over a period and compare quantities with bars, histograms and scatter plots, then save finished figures and generate them automatically for each group in a dataset.
What You Will Achieve
- Create a Matplotlib figure, place data on its axes and give it clear labels and a title
- Plot data indexed by date, zoom into a chosen period and annotate a notable point
- Compare groups with bars, histograms and boxplots, and show uncertainty with error bars
- Save figures in a print-friendly style and size, and write code that draws one figure per category in a column
Program Overview
Matplotlib Foundations and Small Multiples
Introduces the pyplot interface and the Axes object, then shapes how data, labels and titles look on single plots and on grids of panels.
- The matplotlib.pyplot interface and Axes objects
- Customizing markers, lines and axis labels
- Grids of subplots with plt.subplots
- Panels that share a y axis
Plotting Time-Series and Statistical Comparisons
Covers data recorded over time and the plot types used to compare quantities and show how values spread.
- Reading data with a time index and zooming in
- Two variables, a reusable plotting function and annotations
- Bar charts, stacked bars and step histograms
- Error bars, boxplots and scatter plots with time encoded by color
Sharing and Automating Visualizations
Prepares figures for other people by choosing styles, saving files at set sizes and building plots automatically based on input data.
- Selecting and switching plot styles for printing
- Saving figures several times and at different sizes
- Automating figures for the unique values of a column
Certificate Awarded (Paid)
Complete the course to earn it.
Job Outlook
Plotting with Matplotlib is used wherever data analysts, researchers, scientists and data engineers explore data in Python and need to show their results to other people in a clear visual form.
Good for: Python users who already handle tabular data and want to turn it into clear charts they can style, annotate and save.
Keep in mind: Each chapter builds plots in Python code through Matplotlib’s pyplot interface and Axes objects, so expect to write and adjust code for every figure you make.
Bottom line: A focused tour of Matplotlib’s main plot types that ends with saving figures and generating them automatically for each group in a dataset.
Frequently Asked Questions
How does the course handle small multiples?
The first chapter builds small multiples as a grid of subplots created with plt.subplots, and then shows a version in which the panels share one y axis so values can be compared across them at a glance.
How are dates handled in the time-series chapter?
You read a dataset with a time index, use that index to zoom in on a stretch of the data, plot two variables together and add annotations that point out specific moments on the plot.
Can I reuse my plotting code on new data?
Yes. The time-series chapter has you define a function that plots time-series data and then call it, and the last chapter automates figures by looping over the unique values of a column in the dataset.


There are no reviews yet.