Data Visualization banner

Data visualization is important before and after doing AI work. You must have a sense of what your data looks like before you feed it to a model, and you need data visualization to see how well your model is performing.

For this module, we will use Matplotlib, a library that enables the relatively simple creation of various kinds of plots and graphs. All of the code you’ll use has already been covered in previous modules. What makes matplotlib “tricky” is how you have to use its functions and methods (which to call, and in what order). Thankfully, once you have the structure of a plot down, tinkering with it is pretty easy. We’ll step you through this process in the exercise notebook.

Also note that this module does not have an instructional video or a quiz. While we think this content is useful, if you have made it this far, you are already doing “Python for AI”. Congratulations, and Happy Coding!

Objective

By the end of this module, students will be familiarized with the Matplotlib library for Python.

Practice and Apply

Read and practice the following Notebook in Jupyter: 05_matplotlib_visualization.ipynb

Stuck or need to see this in action? Watch the Data Visualization with Matplotlib Walkthrough video (15:23).

We have included an optional data visualization Notebook which focuses on the plotnine library: 05_plotnine_visualization.ipynb Note: This notebook does not have a walkthrough video!