Stem and Leaf Plot Maker
Arrange a pasted column into a stem-and-leaf display with the leaf unit chosen from the data and stated on the picture.
What this page draws
Sorts the pasted values into stems and single-digit leaves, keeping every original value visible, and states the leaf unit that the rounding used.
How to use it
Paste a column of numbers and press Draw. Leave the leaf unit blank to let the page choose one, or type 1, 0.1 or 10 to fix it. The unit is printed above the display.
Worked example: 12 13 21 24 24 25 31 35 35 37 becomes stems 1, 2 and 3 with leaves 2 3, 1 4 4 5 and 1 5 5 7, leaf unit 1.
What the picture states
Domain: The values you paste; the stems span the smallest and largest value.
Sampling: Every pasted value appears exactly once as a leaf.
The caption under the picture repeats both, so the drawing and the facts cannot disagree.
How it works
The leaf unit is the place value of the data's last significant digit — 1 for whole numbers, 0.01 for two-decimal data — coarsened by factors of ten until the display fits at most thirty stems, unless you type a unit. One leaf is one unit of value and a stem is ten leaves, so floor(value ÷ (10 × unit)) is the stem and the next digit is the leaf.
What it refuses
An empty paste, a non-numeric token, a leaf unit that is zero or negative, or more than 5,000 values is refused by name. A leaf that rounds to ten carries into the next stem rather than printing a two-digit leaf.
Where it runs
The picture is computed and drawn in this tab: there is no upload, no network request, no plotting library and no model, so nothing you paste leaves your device.
Sorts the pasted values into stems and single-digit leaves, keeping every original value visible, and states the leaf unit that the rounding used.
The leaf unit is the place value of the data's last significant digit — 1 for whole numbers, 0.01 for two-decimal data — coarsened by factors of ten until the display fits at most thirty stems, unless you type a unit. One leaf is one unit of value and a stem is ten leaves, so floor(value ÷ (10 × unit)) is the stem and the next digit is the leaf. The picture is computed and drawn in this tab: there is no upload, no network request, no plotting library and no model, so nothing you paste leaves your device.
Domain: The values you paste; the stems span the smallest and largest value. Sampling: Every pasted value appears exactly once as a leaf.
Worked example: 12 13 21 24 24 25 31 35 35 37 becomes stems 1, 2 and 3 with leaves 2 3, 1 4 4 5 and 1 5 5 7, leaf unit 1.
How to use the stem and leaf plot maker
Paste a column of numbers and press Draw. Leave the leaf unit blank to let the page choose one, or type 1, 0.1 or 10 to fix it. The unit is printed above the display.
The picture is computed and drawn in this tab: there is no upload, no network request, no plotting library and no model, so nothing you paste leaves your device.
- Values (one per line, or separated by spaces) — one value or one rule per line
- Leaf unit (blank chooses one) — typed text
What the picture states
Sorts the pasted values into stems and single-digit leaves, keeping every original value visible, and states the leaf unit that the rounding used.
The leaf unit is the place value of the data's last significant digit — 1 for whole numbers, 0.01 for two-decimal data — coarsened by factors of ten until the display fits at most thirty stems, unless you type a unit. One leaf is one unit of value and a stem is ten leaves, so floor(value ÷ (10 × unit)) is the stem and the next digit is the leaf.
- Domain: The values you paste; the stems span the smallest and largest value.
- Sampling: Every pasted value appears exactly once as a leaf.
- The caption under the picture repeats the domain and the sample count, so the drawing and the facts cannot disagree.
What it refuses, and what it leaves out
An empty paste, a non-numeric token, a leaf unit that is zero or negative, or more than 5,000 values is refused by name. A leaf that rounds to ten carries into the next stem rather than printing a two-digit leaf.
- Not the right page for: thousands of values, where a histogram is needed
- Not the right page for: grouped data with no individual values
What to Expect
Best for
- a small-to-medium sample
- keeping every value visible
- a hand-sorted display for a class
Not ideal for
- thousands of values, where a histogram is needed
- grouped data with no individual values
What this tool keeps
- Every value as one leaf
- The leaf unit
- Sorted leaves within each stem
What may need cleanup
- Choosing a leaf unit that keeps the display readable
- Rounding is stated, so a value can share a leaf with a neighbour
Common errors
- A two-digit leaf is carried, not printed
- A decimal sample usually needs a unit below 1
Example use cases
- A test-score display
- A small measurement sample
- A classroom sorting exercise
Sample input
12 13 21 24 24 25 31 35 35 37
Sample output
stems 1, 2 and 3 with leaves 2 3, 1 4 4 5 and 1 5 5 7, leaf unit 1
Who this is for
- Students
- Teachers
- Anyone exploring a small sample
Frequently asked questions
Is my data sent anywhere?
The picture is computed and drawn in this tab: there is no upload, no network request, no plotting library and no model, so nothing you paste leaves your device.
What can I download?
Two files from the same drawing: a PNG captured from the canvas and an SVG built from the same drawing operations. Both are produced in your browser, and neither is uploaded.
Why does the page state the domain and the sample count?
Because a picture is a finite sample of a mathematical object. Saying where it was sampled and how many points were used is the difference between a plot and a guess. The values you paste; the stems span the smallest and largest value. Every pasted value appears exactly once as a leaf.
How is the leaf unit chosen?
The page starts from the place value of the data's last significant digit and coarsens it by factors of ten until the display needs at most thirty stems. Whole numbers therefore use a unit of 1 and a stem per ten; two-decimal data uses a unit of 0.01.
Why is a leaf only one digit?
A stem-and-leaf display is a histogram written sideways: each leaf is one digit of the value at that stem. If a remainder rounds to ten, the value belongs to the next stem, which is what the carry does.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.