Plotting the sinplot() with styles "whitegrid", "white", "ticks".
In [6]:
%matplotlib inline
import numpy as np
import matplotlib as mpl
import matplotlib.pyplot as plt
import seaborn as sns
np.random.seed(sum(map(ord, "aesthetics")))
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 [7]:
sns.set_style("whitegrid")
sinplot()
In [3]:
sns.set_style("dark")
sinplot()
In [5]:
sns.set_style("ticks")
sinplot()
In [8]:
sinplot()
sns.despine()
In [9]:
with sns.axes_style("darkgrid"):
plt.subplot(211)
sinplot()
plt.subplot(212)
sinplot(-1)
In [ ]: