%matplotlib inline import numpy as np import matplotlib.pyplot as plt plt.style.use('seaborn')
x = np.linspace(-5, +5) y = 2 * x fig, ax = plt.subplots() ax.plot(x, y) plt.show()