cnsplots

Publication-ready scientific visualizations for Cell, Nature, and Science journals.

cnsplots is a Python visualization library built on matplotlib and fully compatible with seaborn. It creates figures that meet the high standards of top-tier scientific publications while keeping the API simple and intuitive.

Overview of cnsplots visualizations

Key Features

  • Publication-ready defaults — Figures styled for Cell, Nature, and Science journals

  • Adobe Illustrator compatible — PDF fonts work seamlessly in publication workflows

  • Familiar API — Built on matplotlib/seaborn, easy to learn if you know these libraries

  • Precise sizing — Dimensions in pixels for exact control

Quick Example

import cnsplots as cns
import seaborn as sns

df = sns.load_dataset("tips")
cns.figure(150, 100)  # Height x Width in pixels
cns.boxplot(data=df, x="day", y="total_bill")
cns.savefig("figure.svg")
Getting Started

New to cnsplots? Start here for a quick tutorial.

Getting Started
Installation

Installation guide and setup instructions.

Installation
Examples

Gallery of examples showing what you can do with cnsplots.

Examples Gallery
API Reference

Detailed description of all cnsplots functions and parameters.

API
Release Notes

Published release history and changelog highlights.

Release Notes