Violin Plot Maker

Place measurements from several lines or conditions side by side and show where the values concentrate with violin-shaped density curves. Shapes a box plot can hide, such as two peaks, become visible.

1Data Table

Paste a table copied from Excel into a cell (Ctrl+V). Click a column header (A, B…) before pasting to use the first line as column names. Double-click a header to rename it, right-click to insert/delete rows and columns, and formulas such as =A1*2 work too.

2Violin Plot Options

Select data columns to plot (multiple allowed):

※ With a group column, one chart is drawn per data column (several data columns can be selected).

How to make a violin plot

  1. Copy the measurement columns to compare (or one measurement column plus a group column) together with the header.
  2. Select the columns to plot. With a group column, one chart is drawn per data column.
  3. Press Draw and check the body shapes, the horizontal lines (mean, median, min, max) and the automatic interpretation.

Worked example with sample data

The sample data are 40 thickness measurements from each of three lines (Line A, B and C).

Violin plot of Line A/B/C thickness - density bodies with mean, median, min and max
Violin plot of Line A/B/C thickness - density bodies with mean, median, min and max

The means are similar - 10.06, 10.02 and 9.891 - but the violin shapes are completely different. Line A is a single bell, while Line B bulges in two places with a waist in between: two peaks.

Two peaks like Line B's often mean products from two different conditions (two machines, two raw-material lots) are mixed. A box plot hides this shape, so it is easy to miss when looking only at mean and standard deviation.

Line C is thick at the bottom with a long upper tail - a right-skewed distribution - and the interpretation found 2 outliers by the IQR rule.

What is a violin plot?

A violin plot draws the density of the data as a symmetric curve. The wider the body, the more data near that value. A box plot summarizes only the quartiles, while a violin shows the actual shape of the distribution - the number of peaks and the skewness.

How it is calculated

For each series a Gaussian kernel density (bandwidth: Scott's rule) is evaluated at 100 points between the minimum and maximum and scaled so the widest half-width is 0.25 (the same method as matplotlib violinplot). The vertical bar spans min to max, and the horizontal lines mark the mean, median, minimum and maximum.

How to read a violin plot

  • A waist with two peaks may mean data from two different conditions (equipment, raw material, etc.) are mixed.
  • A body stretched to one side indicates a skewed distribution; the farther apart the mean and median lines, the stronger the skew.
  • The automatic interpretation reports the number of outliers (IQR rule) and, for several series, compares medians and standard deviations.

Frequently asked questions

Should I use a box plot or a violin plot?

Use a box plot for summary statistics (quartiles, outliers) and a violin plot for the distribution shape. Looking at both is the most informative.

How many data points do I need?

Two or more draw a plot, but 20 or more per series are recommended for a meaningful density curve. If all values are equal, only the lines are drawn.

Can I split the data by group?

Yes. Choose a data column and a group column to draw one violin per group value. With several data columns, one chart is drawn per data column.

Other chart tools