Matplotlib and NumPy demo

We'll be using:

  • Jupyter Notebook
  • Matplotlib
  • NumPy
  • Standard Library

In [ ]:
%matplotlib inline
import matplotlib.pyplot as plt
import numpy as np
import math

x = np.arange(-math.pi, math.pi, 0.01)
sin = np.vectorize(math.sin)
y = sin(x)
plt.plot(x, y)

Hey boss, here's the data. How do you like the results?