Difference makes the DIFFERENCE
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
sns.set(color_codes = True)
df = sns.load_dataset('diamonds')
pen = sns.load_dataset('penguins')
pen.head(2)
sns.swarmplot(x='body_mass_g', data=pen)
sns.violinplot(x='body_mass_g', data=pen)
sns.boxplot(x='body_mass_g', data=pen)
sns.kdeplot(x='body_mass_g', data=pen, shade=True)
fig, axs = plt.subplots(nrows=4)
sns.kdeplot(x='body_mass_g', data=pen, shade=True, ax=axs[0])
sns.boxplot(x='body_mass_g', data=pen, ax=axs[1])
sns.swarmplot(x='body_mass_g', data=pen, ax=axs[2])
sns.violinplot(x='body_mass_g', data=pen, ax=axs[3])
fig, axs = plt.subplots(nrows=4)
fig.set_size_inches(6, 8)
sns.kdeplot(x='body_mass_g', data=pen, shade=True, ax=axs[0])
sns.boxplot(x='body_mass_g', data=pen, ax=axs[1])
sns.swarmplot(x='body_mass_g', data=pen, ax=axs[2])
sns.violinplot(x='body_mass_g', data=pen, ax=axs[3])
fig, axs = plt.subplots(nrows=4)
fig.set_size_inches(6, 8)
p1 = sns.kdeplot(x='body_mass_g', data=pen, shade=True, ax=axs[0])
p1.set(xlim=(2000, 7500))
p2 = sns.boxplot(x='body_mass_g', data=pen, ax=axs[1])
p2.set(xlim=(2000, 7500))
p3 = sns.swarmplot(x='body_mass_g', data=pen, ax=axs[2])
p3.set(xlim=(2000, 7500))
p4 = sns.violinplot(x='body_mass_g', data=pen, ax=axs[3])
p4.set(xlim=(2000, 7500))
fig, axs = plt.subplots(nrows=2)
p1 = sns.swarmplot(x='body_mass_g', data=pen, ax = axs[0])
p1.set(xlim = (2000, 7500))
p2 = sns.violinplot(x='body_mass_g', data=pen, ax = axs[1])
p2.set(xlim = (2000, 7500))