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]:
[<matplotlib.lines.Line2D at 0xaee678b0>]

In [12]:
plt.figure()
plt.plot(x, y2)


Out[12]:
[<matplotlib.lines.Line2D at 0xaeacf650>]