How to increase plot size in Seaborn

You can increase the plot size in Seaborn with the following code. The given example helps you to understand how to increase the plot size. I highly recommend you “Python Crash Course Book” to learn Python.

Example: Increase Plot Size

# Import the required libraries
import seaborn as sns
import matplotlib.pyplot as plt

# Load the Dataset
df = sns.load_dataset("iris")

# Increase plot size

# Plot the Histogram
sns.histplot(x="petal_width", data=df)

# Display the plot


Leave a Comment

Your email address will not be published.