Kaplan-Meier Plot Generator
Turn survival analysis results into a publication-ready figure
Describe your survival data — groups, follow-up time, and the log-rank p-value from your analysis — and AI draws a clean Kaplan-Meier curve with downward step survival curves, censoring tick marks, a number-at-risk table, and annotated p-value, ready for manuscripts and talks.
Kaplan-Meier plot examples
Click any example to load its prompt, or use it as a starting point for your own survival curve.
What does this Kaplan-Meier plot generator do?
It turns a description of your survival analysis results into a clean, publication-ready Kaplan-Meier plot — the step function that puts survival probability (0 to 1 or as a percentage) on the y-axis against time on the x-axis. You describe your groups, follow-up time, censoring, and the statistics from your own analysis, and the AI draws the downward step curves, censoring tick marks, the number-at-risk table, and the log-rank p-value annotation so survival differences read clearly, without plotting code or manual layout. SciDraw AI draws and beautifies the curve from the values you provide; it does not run the survival statistics for you.
Why use a Kaplan-Meier plot generator
- The Kaplan-Meier curve is the standard way to present survival or time-to-event data in a single figure.
- Coding a polished KM plot with censoring marks and an at-risk table in R or Python takes time and iteration.
- A clear step curve with a legend and annotated p-value makes group differences obvious to any reader.
- Researchers need clean, presentable survival figures for papers, posters, and talks quickly.
- Regenerating from a description is faster than re-running a script every time labels, colors, or the layout change.
How to make a Kaplan-Meier plot
Describe your study (for example overall survival, treatment vs control), say which groups to show and over what follow-up time, and note your y-axis scale — survival probability from 0 to 1 or as a percentage. Add the elements you want: censoring tick marks, shaded confidence bands, a number-at-risk table, and the log-rank p-value and median survival from your analysis. Generate the figure, then check that curves only step down, the groups and labels are correct, and refine until it matches your data.
Parts of a Kaplan-Meier plot
- Y-axis — survival probability, from 0 to 1 or as a percentage.
- X-axis — time since the start of follow-up (days, months, or years).
- Step curves — survival per group, only ever stepping down over time.
- Censoring marks — tick marks where observations were censored.
- Number-at-risk table — counts remaining per group beneath the x-axis.
- Annotations — the log-rank p-value, median survival, and a group legend.
Kaplan-Meier Plot Generator FAQ
What is a Kaplan-Meier plot?
A Kaplan-Meier plot is a step function that shows the estimated survival probability of one or more groups over time. The y-axis runs from 0 to 1 (or 0% to 100%) and the x-axis is follow-up time; each curve only steps down as events occur, and censored observations are usually shown as tick marks.
What data do I need for a survival curve?
For your own analysis you need follow-up time, an event/censoring indicator, and a group for each subject. To draw the figure here you describe the groups, the shape of the curves over time, the censoring marks, and the statistics — such as the log-rank p-value and median survival — that came out of your analysis.
Does this run the survival statistics for me?
No. SciDraw AI draws and beautifies the Kaplan-Meier curve from the values you provide. Run the Kaplan-Meier estimation and the log-rank test in your own statistics software, then describe the results so the figure reflects them accurately.
Can it add a number-at-risk table and the log-rank p-value?
Yes. You can ask for a number-at-risk table aligned beneath the x-axis and have the log-rank p-value annotated in the plot. Provide the at-risk counts and the p-value from your analysis and they will be drawn into the figure.
Can I show censoring and multiple groups?
Yes. You can show censored observations as tick marks and plot multiple groups as separate colored step curves with a legend, optionally with shaded confidence bands — useful for overall survival (OS), progression-free survival (PFS), and stratified comparisons.
Can I export an editable figure?
SciDraw AI can export to vector formats so you can adjust labels, colors, line styles, and the legend afterwards. Always check the curves, censoring marks, and annotated statistics against your underlying analysis before submitting.
Explore More Tools
Need other research figures?
Generate forest plots, volcano plots, pathway diagrams, and other research figures with SciDraw AI.



