From cb5d24378343acc11913ca42e55c5ade8fa33f44 Mon Sep 17 00:00:00 2001 From: SJaffa Date: Thu, 9 Jan 2025 14:15:42 +0000 Subject: [PATCH] swap pylab for pyplot --- _episodes/03-numpy_essential.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_episodes/03-numpy_essential.md b/_episodes/03-numpy_essential.md index 67ef726..67c3612 100644 --- a/_episodes/03-numpy_essential.md +++ b/_episodes/03-numpy_essential.md @@ -39,10 +39,10 @@ To start, we are going to import the two libraries `numpy` and `matplotlib` that ~~~ import numpy as np -import matplotlib.pylab as plt +import matplotlib.pyplot as plt ~~~ {: .language-python} -Here we import the libraries using a common shorthand for them, `np` for `numpy`, and `plt` for `matplotlib.pylab`. You will encounter this in many python scripts using these libraries, and we will continue to use these shorthands below. +Here we import the libraries using a common shorthand for them, `np` for `numpy`, and `plt` for `matplotlib.pyplot`. You will encounter this in many python scripts using these libraries, and we will continue to use these shorthands below. If we wanted to create a *list* of odd numbers in base Python we would use `range` and `list`: ~~~