Seaborn Figure Size

  • Post category:Seaborn

In this Seaborn tutorial, you will learn how to change the Seaborn figure size in Python.

# import required modules
import seaborn as sns
import matplotlib.pyplot as plt

# load the dataset
var = sns.load_dataset('tips')

# increase the figure size
plt.figure(figsize = (10, 5))

# create a scatter plot using seaborn
sns.scatterplot(x = 'total_bill', y = 'tip', data = var)

# set the title of the plot
plt.title('Scatter Plot')

# save the plot

# show the plot


Free resources to learn advanced skills: AiHints and CodeAllow