In [11]:
import matplotlib.pyplot as plt
import numpy as np
%matplotlib inline
x = np.linspace(-3, 3, 50)
y1 = x*2 - 1
y2 = x ** 2
plt.figure()
plt.plot(x, y1)
Out[11]:
In [12]:
plt.figure()
plt.plot(x, y2)
Out[12]: