Skip to content

violinplot

Violin plot — box plot with a kernel-density-estimate envelope.

violinplot(ydata)
violinplot(ydata, x, ...)

Like boxplot but the box is replaced by a mirrored kernel-density estimate of the data distribution. Shows distribution shape (multimodality, skew) that boxplots can’t.

violinplot(randn(1000, 4))