How to bold title in Seaborn

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

Example: Bold title of Seaborn plot

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

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

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

# Add the bold title
plt.title('Sepal Length Visualization', weight='bold').set_fontsize('15')

# Display the plot


Bold title of Seaborn plot

Leave a Comment

Your email address will not be published.