Skip to content

Commit f0397a4

Browse files
SJaffadouglowe
authored andcommitted
swap pylab for pyplot
1 parent fedb266 commit f0397a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_episodes/03-numpy_essential.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ To start, we are going to import the two libraries `numpy` and `matplotlib` that
3939

4040
~~~
4141
import numpy as np
42-
import matplotlib.pylab as plt
42+
import matplotlib.pyplot as plt
4343
~~~
4444
{: .language-python}
45-
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.
45+
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.
4646

4747
If we wanted to create a *list* of odd numbers in base Python we would use `range` and `list`:
4848
~~~

0 commit comments

Comments
 (0)