While boxplots hide multi-modal shapes, violin plots overlay a smooth Kernel Density Estimate (KDE) curve on each side of the central marker, showing peaks and valleys in the data distribution.
Carving a solid wooden violin silhouette where the width at any height corresponds to how many data points live at that score.
The wider the violin body at a given Y value, the higher the concentration of observations at that level.
plt.violinplot(dataset, showmedians=True)Avoid the top errors and bad plotting practices that trip up new Python developers
Switch from abstract numbers to relatable Cricket, Cinema & Business charts
Write Matplotlib code to solve the objective and see your live plot render
Create a violin plot for `data = [15, 18, 20, 22, 24, 25, 26, 28, 32]` with `showmeans=True`.
✓ plt.violinplot✓ showmeansTest your understanding to unlock the lesson completion badge