Import matplotlib python

from matplotlib import pyplot as plt

import matplotlib.pyplot as plt 

Here is what the above code is Doing:
1. Importing the matplotlib library.
2. Importing the pyplot module from matplotlib.
3. Giving the pyplot module an alias of plt.
4. Importing the matplotlib.pyplot module and giving it an alias of plt.