How to make a box plot
- Arrange the groups to compare in separate columns, or as one value column plus one group column.
- Copy the data and paste it into the data table (paste on a column header to use the first line as names).
- Select the columns to compare (or a value column and a group column).
- Press Draw and check box positions, outliers, statistics and the automatic interpretation.
Worked example with sample data
The sample data are 25 measurements from each of three machines (Machine 1, 2 and 3).
Comparing the thick line in each box (the median), Machine 2 is highest at 12.46 and Machine 3 lowest at 11.79. The box heights (interquartile ranges) are similar, so the interpretation says the standard deviations are at a similar level - Machine 2 differs in level, not in spread.
The separate points beyond the whiskers are outliers by the IQR rule: one each on Machine 2 (14.52) and Machine 3 (14.40), both on the high side. The ◆ marks the mean; Machine 2's mean (12.55) is above its median because the high outlier pulls it up.
In a case like this, compare Machine 2's settings (temperature, pressure) with the others and check the work records at the time the outliers occurred. Whether the machine differences are statistically significant is tested with ANOVA.
What is a box plot?
A box plot summarizes a distribution with five numbers: the box spans the first quartile (Q1) to the third quartile (Q3), the line inside is the median, and the whiskers reach the most extreme values within 1.5 × IQR of the box. Points beyond the whiskers are drawn individually as outliers.
Because it is compact, it is ideal for comparing many groups at once - for example the same measurement from several machines, shifts or suppliers.
How quartiles and outliers are calculated
Quartiles use linear interpolation (the NumPy default), and the whiskers follow the standard matplotlib rule. The mean is marked with ◆ so you can see how far it sits from the median - a large gap suggests skewed data.
How to read a box plot
- A taller box means more spread in the middle 50% of the data.
- If the median line is not centered in the box, the distribution is skewed toward the longer side.
- Outliers may be measurement errors or special causes - check what happened at those points.
- Boxes that barely overlap suggest a real difference between groups; confirm it with a statistical test.
Frequently asked questions
Can I compare several groups on one chart?
Yes. Select several columns, or a value column with a group column, and each group gets its own box. With several value columns and a group column, one chart is drawn per value column.
What counts as an outlier?
Values below Q1 − 1.5 × IQR or above Q3 + 1.5 × IQR, where IQR = Q3 − Q1. This is the same rule used by most statistical software.
Can I test whether the groups are significantly different?
The box plot shows the difference visually. To test it, use the t-tests, ANOVA and nonparametric tests in the Statistics menu.