BYU logo Computer Science

Lab 19 — More plotting with matplotlib

In this lab you will gain more practice with plotting using matplotlib. We will use datasets stored in files to create line plots and bar plots. Start by downloading Write all your code in the lab19.ipynb Jupyter notebook.


To get things setup for this lab, do the following in a terminal:

conda activate cs110

Reminder: The easiest way for you to do this is to use the PyCharm terminal.

Then you can run jupyter from a terminal:

jupyter notebook

See the Introduction to Jupyter if you need help with using Jupyter.


Complete all the sections of the notebook you downloaded above.


What we want you to get from this lab:

  • You are able to use a Jupyter notebook

  • You can create line plots and bar plots with matplotlib using datasets stored in CSV files

  • Hopefully you had fun!


Turn in a zip file with your Python notebook and the datasets.

COVID vaccinations for a list of countriesYour plot is correct2
Traffic deaths for a list of countriesYour plot is correct3
Mean dinosaur length by typeYour plot is correct2
Mean dinosaur length by periodYour plot is correct3