Plot Data With Matplotlib


Welcome to Week 4!

Welcome to week 4 of Earth Analytics Bootcamp! This week, you will explore plotting data using matplotlib in Python.

Learning Objectives

After completing the lessons for Week 4, you will be able to:

  • Describe the basic structure of a matplotlib figure in Python
  • Create a figure with 1 or more subplots
  • Customize matplotlib figures and subplots.

Homework

The Homework Assignment for This Week Can Be Found on Github

Click here to view the GitHub Repo with the assignment template.

Earth Data Science Textbook Readings

Please read the following chapters to support completing this week’s assignment:

Example Homework Plots

The plots below are examples of what your plot could look like. Feel free to customize or modify plot settings as you see fit!

Downloading from https://ndownloader.figshare.com/files/24649844
Bar plot of total fires in the USA by year from 2000-2015.
Bar plot of total fires in the USA by year from 2000-2015.
Bar plot of total fires in the USA by year from 2000-2015. The bars have a custom edgecolor.
Bar plot of total fires in the USA by year from 2000-2015. The bars have a custom edgecolor.
Two plots. The top plot is a bar plot of total fires in the USA by year from 2000-2015. The bottom plot is a scatter plot of mean fire size in hectacres in the USA from 2000-2015.
Two plots. The top plot is a bar plot of total fires in the USA by year from 2000-2015. The bottom plot is a scatter plot of mean fire size in hectacres in the USA from 2000-2015.