Skip to main content

Introduction to Data Visualization with Matplotlib

Learn how to create, customize, and share data visualizations using Matplotlib.

Start Course for Free
4 Hours14 Videos44 Exercises88,801 Learners
3600 XP

Create Your Free Account



By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA. You confirm you are at least 16 years old (13 if you are an authorized Classrooms user).

Loved by learners at thousands of companies

Course Description

Visualizing data in plots and figures exposes the underlying patterns in the data and provides insights. Good visualizations also help you communicate your data to others, and are useful to data analysts and other consumers of the data. In this course, you will learn how to use Matplotlib, a powerful Python data visualization library. Matplotlib provides the building blocks to create rich visualizations of many different kinds of datasets. You will learn how to create visualizations for different kinds of data and how to customize, automate, and share these visualizations.

  1. 1

    Introduction to Matplotlib


    This chapter introduces the Matplotlib visualization library and demonstrates how to use it with data.

    Play Chapter Now
    Introduction to data visualization with Matplotlib
    50 xp
    Using the matplotlib.pyplot interface
    100 xp
    Adding data to an Axes object
    100 xp
    Customizing your plots
    50 xp
    Customizing data appearance
    100 xp
    Customizing axis labels and adding titles
    100 xp
    Small multiples
    50 xp
    Creating a grid of subplots
    50 xp
    Creating small multiples with plt.subplots
    100 xp
    Small multiples with shared y axis
    100 xp
  2. 4

    Sharing visualizations with others

    This chapter shows you how to share your visualizations with others: how to save your figures as files, how to adjust their look and feel, and how to automate their creation based on input data.

    Play Chapter Now

In the following tracks

Data Analyst Data Scientist Data Visualization


Chester IsmayAmy Peterson
Ariel Rokem Headshot

Ariel Rokem

Senior Data Scientist, University of Washington

Ariel Rokem is a Data Scientist at the University of Washington eScience Institute. He received a PhD in neuroscience from UC Berkeley, and postdoctoral training in computational neuroimaging at Stanford. In his work, he develops data science algorithms and tools, and applies them to analysis of neural data. He is also a contributor to multiple open-source software projects in the scientific Python ecosystem.
See More

What do other learners have to say?

I've used other sites—Coursera, Udacity, things like that—but DataCamp's been the one that I've stuck with.

Devon Edwards Joseph
Lloyds Banking Group

DataCamp is the top resource I recommend for learning data science.

Louis Maiden
Harvard Business School

DataCamp is by far my favorite website to learn from.

Ronald Bowers
Decision Science Analytics, USAA