Description
cnsplots is a Python toolkit for drawing publication-quality scientific figures in the styles of the Cell, Nature and Science journals. It is built on matplotlib and seaborn, and it provides a set of plotting functions that each produce one kind of chart, such as box plots, violin plots, bar plots, heatmaps, Sankey diagrams, Venn and UpSet plots, survival curves, ROC and precision-recall curves, calibration plots, forest plots and volcano plots. It also includes helpers for statistical comparisons, Cox and logistic regression models, GSEA-style pre-ranked analysis, multi-panel figures and panel labels, and a small set of example datasets for trying the functions. The documentation has sections on getting started, installation, statistical methods and the full API. The docs site switches between light and dark modes, and the project is hosted on GitHub, where the docs source can be edited. The current version listed on the site is 0.8.0.…
Highlights
- Plot types for journal-style figures
- Built on matplotlib and seaborn
- Helpers for survival, ROC, calibration and regression results
- Multi-panel figures and bundled example datasets
Ratings & Reviews
No ratings yet
Be the first to rate Cnsplots.
People also visit

nature-figure
Create, revise, audit, and export manuscript scientific figures in Python or R
Cnsplots FAQ
What is cnsplots?
A Python toolkit for generating publication-quality plots for Cell, Nature and Science journals, built on matplotlib and seaborn.
Which kinds of plots does it make?
Box, violin, strip, bar and lollipop plots, histograms, KDE and ridge plots, scatter and regression plots, heatmaps, dot and confusion plots, pie and donut charts, Venn, UpSet and Sankey plots, survival and cumulative incidence plots, volcano, GSEA, ROC, precision-recall, calibration, QQ and forest plots, and phylogenetic trees.
Does it include statistics?
Yes. The docs have a statistical methods section, and the API includes functions that return comparison, survival, ROC, precision-recall and calibration results, plus Cox and logistic model classes.
Where is the source?
The project is on GitHub, and the documentation source is in the repository's docs folder, where you can suggest edits.
What are the best Cnsplots alternatives?
Popular alternatives to Cnsplots include SCpubr, Seaborn and See. See all Cnsplots alternatives






