- #32 Seaborn boxplot: line width
- #32 Add notch to seaborn boxplot
- #32 Contol width of seaborn boxplot
This post aims to describe 3 customizations you can apply to your seaborn boxplot:
- Custom line width
-
# library & dataset import seaborn as sns df = sns.load_dataset('iris') # Change line width sns.boxplot( x=df["species"], y=df["sepal_length"], linewidth=5) #sns.plt.show()
- Add notch
-
# library & dataset import seaborn as sns df = sns.load_dataset('iris') # Add notch sns.boxplot( x=df["species"], y=df["sepal_length"], notch=True) #sns.plt.show()
- Control box sizes
-
# library & dataset import seaborn as sns df = sns.load_dataset('iris') # Change width sns.boxplot( x=df["species"], y=df["sepal_length"], width=0.3) #sns.plt.show()
Carefully observe the winners, don’t always pay attention to the losers
lel k