Overview
Seaborn 0.13, released on September 13, 2023, stabilizes the objects interface and improves default themes.
Main Features
Objects interface
The seaborn.objects API provides a declarative grammar of graphics inspired by ggplot2, with layer composition.
python
import seaborn.objects as so
import seaborn as sns
tips = sns.load_dataset('tips')
(
so.Plot(tips, x='total_bill', y='tip', color='day')
.add(so.Dot())
.add(so.Line(), so.PolyFit(order=1))
)
Updated default theme
The default theme uses better color palettes and a more modern style.
python
import seaborn as sns
import matplotlib.pyplot as plt
tips = sns.load_dataset('tips')
sns.set_theme(style='whitegrid')
sns.histplot(data=tips, x='total_bill', hue='day')
plt.show()
