In [1]:
%matplotlib inline

In [2]:
import numpy as np
import matplotlib as mpl
import matplotlib.pyplot as plt
np.random.seed(sum(map(ord, "aesthetics")))

In [3]:
def sinplot(flip=1):
    x = np.linspace(0, 14, 100)
    for i in range(1, 7):
        plt.plot(x, np.sin(x + i * .5) * (7 - i) * flip)

In [4]:
sinplot()



In [5]:
import seaborn as sns
sinplot()



In [6]:
sns.set_style('whitegrid')

In [7]:
data = np.random.normal(size=(20,6)) + np.arange(6) / 2

In [10]:
sns.boxplot(data);



In [14]:
sns.set_style('dark')

In [15]:
sinplot()



In [16]:
sns.set_style('white')
sinplot()



In [17]:
sns.set_style('ticks')
sinplot()



In [18]:
sinplot()
sns.despine()



In [20]:
f, ax = plt.subplots()
sns.violinplot(data)
sns.despine(offset=10, trim=True);



In [22]:
sns.violinplot(data)
sns.despine(offset=10, trim=True);



In [24]:
sns.set_style('whitegrid')
sns.boxplot(data)
sns.despine(left=True)



In [25]:
with sns.axes_style('darkgrid'):
    plt.subplot(211)
    sinplot()
plt.subplot(212)
sinplot(-1)



In [50]:
sns.set_context('paper')
sinplot()



In [52]:
sns.set_context('notebook')
sinplot()



In [51]:
sns.set_context("talk")
sinplot()



In [42]:
sns.set_context("poster")
# plt.figure(figsize=(8, 6))
sinplot()



In [55]:
sns.set(rc={'figure.figsize': (6,6)})

In [57]:
np.random.seed(sum(map(ord, 'palettes')))

In [58]:
current_palette = sns.color_palette()

In [59]:
sns.palplot(current_palette)



In [67]:
sns.palplot(sns.hls_palette(8, l=.5, s=.6))



In [69]:
sns.palplot(sns.color_palette('husl',10))



In [73]:
sns.palplot(sns.husl_palette(10, l=.5, s=.8))



In [79]:
sns.choose_colorbrewer_palette('s');



In [81]:
sns.palplot(sns.cubehelix_palette?

In [89]:
sns.palplot(sns.cubehelix_palette(8, start=0.5, rot=1, reverse=True))



In [97]:
a = sns.choose_cubehelix_palette();



In [98]:
sns.palplot(a)



In [ ]:


In [ ]: