Extract data from a swimmer plot
Drop a swimmer plot and get one row for each patient: where the bar starts and ends, whether it is marked as ongoing, and the time of every event symbol. You also get the median duration, with ongoing patients treated as censored.

The example above was made from this synthetic figure.
What you get
- One row for each bar, top to bottom: start, end, duration, colour group, and whether it is ongoing.
- Every event with the legend's name for it and its time.
- Colour changes along a bar (response status over time, a switch of treatment) as stretches with their start and end.
- Median duration two ways: of the bars as drawn, and by Kaplan–Meier with ongoing bars censored.
- For each kind of event: how many patients had it, and the median time to the first.
- A redrawn plot, CSV, methods text and a citation.
What to keep in mind
- Times are read from the drawing against the axis, so they are approximate.
- What a bar means differs between papers: time on treatment, time on study, or duration of response. Check the caption before you name the median.
- Checks: the number of bars against the number the figure states, bars that end before they start, and markers that sit outside their bar.
How well it reads
On 4 swimmer plots from open-access papers (99 patients), the number of bars matched the figure's own patient count on all 3 where it is known. Two separate blind readings of each figure put every bar end within 2% of the axis length of each other, agreed on ongoing status for all 99 patients, on the events for 98, and on the colour changes of all 24 bars that have them. No swimmer plot prints its times, so this measures how repeatable the reading is, not how close it is to the truth. Our own test with the deeper reading, not peer reviewed (figures and scores). Read once more without zoom, as the free reading does, bar counts were exact, every bar end was within 1% of the axis length, and the events matched for 98 of 99 patients; the colour changes of one bar were missed. Still check the redrawn plot against the figure. For a time-to-event analysis from a published curve, upload the Kaplan–Meier figure. See also the waterfall plot and forest plot extractors.
FAQ
Can I compute duration of response from a swimmer plot?
If the plot marks the first response and the end of response or progression for each patient, yes: the CSV has every event time. The Kaplan–Meier median treats bars marked as ongoing as censored.
How accurate are the times?
They are read from the bar ends and markers against the axis, so they are approximate. The redrawn plot lets you check them against the published figure.
What does the arrow at the end of a bar mean?
Usually that treatment or response was ongoing at the data cut-off. Those patients are treated as censored in the Kaplan–Meier median.
Have a KM figure from a paper? Get its data in a minute.
Upload a figure