In [3]:
%matplotlib inline
import matplotlib.pyplot as plt
import numpy as np
In [4]:
plt.style.available
Out[4]:
In [5]:
def hist_and_lines():
np.random.seed(0)
fig, ax = plt.subplots(1, 2, figsize=(11, 4))
ax[0].hist(np.random.randn(1000))
for i in range(3):
ax[1].plot(np.random.rand(10))
ax[1].legend(['a', 'b', 'c'], loc='lower left')
In [6]:
hist_and_lines()
In [7]:
with plt.style.context('fivethirtyeight'):
hist_and_lines()
In [8]:
with plt.style.context('ggplot'):
hist_and_lines()
In [9]:
with plt.style.context('bmh'):
hist_and_lines()
In [13]:
import seaborn as sns
sns.set(style="whitegrid")
hist_and_lines()
In [12]:
sns.set()
hist_and_lines()