seaborn set figure size code example

Example 1: seaborn size

import seaborn as sns

sns.set(rc={'figure.figsize':(11.7,8.27)})

Example 2: seaborn figure size

plt.figure(figsize=(20,10))

Example 3: sns figsize

from matplotlib import pyplot as plt
import seaborn as sns

plt.figure(figsize=(15,8))
ax = sns.barplot(x="Word", y="Frequency", data=boxdata)

Example 4: seaborn expand plot to full width jupyter notebook

plt.rcParams['figure.figsize'] = [width, height]

Example 5: seaborn line chart set fig size

from matplotlib import pyplot
import seaborn

import mylib

a4_dims = (11.7, 8.27)
df = mylib.load_data()
fig, ax = pyplot.subplots(figsize=a4_dims)
seaborn.violinplot(ax=ax, data=df, **violin_options)