How to set figure size in Seaborn

You can set the figure size in Seaborn with the following code. I highly recommend you “Python Crash Course Book” to learn Python.

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

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

# Set Figure Size

# Plot the Histogram
sns.histplot(data=iris, x="petal_length")

Leave a Comment

Your email address will not be published.