matplotlib.pyplot
: A MATLAB-like Python plotting package¶matplotlib.pyplot
¶%matplotlib inline
%matplotlib inline
import matplotlib.pyplot as plt
plt.plot([0, 1, 2, 3])
plt.xlabel("Some Numbers");
plt.plot([0, 1, 2, 3])
plt.xlabel("Some Numbers");
plt.grid()
import numpy as np
t = np.arange(0,5,0.2)
plt.plot(t, t, 'b', t, t ** 2, 'b', t, t ** 3, 'r');
import matplotlib
matplotlib.style.use('fivethirtyeight')
plt.plot(t, t, 'k', t, t ** 2, 'b', t, t ** 3, 'r');