%matplotlib inline from __future__ import print_function, division import matplotlib.pyplot as plt import numpy as np x = np.linspace(0, 10) def plot_curves(): for i in range(6): plt.plot(x, np.sin(x + i), label=str(i)); plt.ylim(-2, 4) plt.legend(ncol=2, frameon=False) plot_curves() plt.style.use('ggplot') plot_curves() print(plt.style.available) # restore defaults plt.rcdefaults() %matplotlib inline plt.style.use('dark_background') plot_curves() # restore defaults plt.rcdefaults() %matplotlib inline plt.style.use('bmh') plot_curves() # restore defaults plt.rcdefaults() %matplotlib inline plt.style.use('grayscale') plot_curves() # restore defaults plt.rcdefaults() %matplotlib inline plt.style.use('ggplot') plot_curves() # restore defaults plt.rcdefaults() %matplotlib inline plt.style.use('fivethirtyeight') plot_curves()