Skip to main content

scidraw-ai

Publication-ready matplotlib styles and figure helpers, maintained by SciDraw AI — the AI scientific illustration and data visualization platform.

The color cycles and journal specs in this package are the same ones used by the SciDraw AI chart tools, so Python code exported from the platform reproduces identically on your machine.

Install

pip install scidraw-ai

Quick start

import matplotlib.pyplot as plt
import scidraw_ai  # registers the styles

plt.style.use('scidraw')                      # publication (light)
plt.style.use('scidraw-dark')                 # slides & screens
plt.style.use(['scidraw', 'scidraw-poster'])  # posters & talks

The scidraw style gives you:

  • Okabe-Ito colorblind-safe color cycle — the standard recommended for scientific publishing (pair the yellow with distinct markers on white backgrounds)
  • Clean axes: no top/right spines, outward ticks, frameless legends
  • Journal-friendly type sizes (7–9 pt) with Arial/Helvetica preferred
  • 300 DPI tight-bbox saving out of the box
  • Editable text in exports — pdf.fonttype 42 / svg.fonttype none, so labels stay editable in Illustrator, Inkscape, or PowerPoint

Journal figure sizes

Widths follow each journal's author guidelines (Nature, Science, Cell, PLOS, ACS):

fig, ax = plt.subplots(figsize=scidraw_ai.figsize('nature', 'single'))
fig, ax = plt.subplots(figsize=scidraw_ai.figsize('science', 'double'))

Panel labels

Each journal formats panel labels differently — Nature wants bold lowercase a, Science wants (A), PLOS wants A.:

fig, axs = plt.subplots(1, 3)
scidraw_ai.label_panels(axs, journal='nature')

Palettes

Four colorblind-safe palettes, identical to the SciDraw AI platform:

scidraw_ai.set_palette('okabe-ito')   # default
scidraw_ai.set_palette('wong')
scidraw_ai.set_palette('tol-bright')
scidraw_ai.set_palette('tol-muted')

Generate figures from data, no code

Prefer not to write plotting code at all? SciDraw AI turns CSV/Excel data into journal-quality charts — box plots, heatmaps, regression and violin plots — and exports editable SVG/PDF plus the matplotlib code to reproduce them:

License

MIT

Metadata

Release files for scidraw-ai 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for scidraw-ai 0.1.1
File Size Uploaded Provenance
scidraw_ai-0.1.1.tar.gz 5.3 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for scidraw-ai 0.1.1
File Interpreter ABI Platform
scidraw_ai-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 12.7 kB

Release files / scidraw_ai-0.1.1.tar.gz

Download URL scidraw_ai-0.1.1.tar.gz
Size 5.3 kB
Tags Source
SHA-256 checksum
How to use checksums
f8f1118da43035590915c8945efe41240fd4418e685d656791149aa5bc4cde36
BLAKE2b-256 checksum
How to use checksums
93d05368046e3b7df28b91d80399633ae6c1307504fbb2c07e5ebfbb51518adc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Release files / scidraw_ai-0.1.1-py3-none-any.whl

Download URL scidraw_ai-0.1.1-py3-none-any.whl
Size 7.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
eaeb3f7e0747b57101b789b91f4c1d18b0d12548b2b601374ccfd5decb24df80
BLAKE2b-256 checksum
How to use checksums
7f6473a30b32de4f102f5d2233a08661ad3e876641101bb047ae251da56c881b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Security for scidraw-ai 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page