Skip to main content

Publication-ready matplotlib styles and figure helpers by SciDraw AI — colorblind-safe palettes, journal figure sizes, and panel labels for Nature, Science, Cell, PLOS, and ACS.

Project description

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 exportspdf.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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

scidraw_ai-0.1.1.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

scidraw_ai-0.1.1-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file scidraw_ai-0.1.1.tar.gz.

File metadata

  • Download URL: scidraw_ai-0.1.1.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for scidraw_ai-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f8f1118da43035590915c8945efe41240fd4418e685d656791149aa5bc4cde36
MD5 68580aaf60f5dda87d0f116528c73318
BLAKE2b-256 93d05368046e3b7df28b91d80399633ae6c1307504fbb2c07e5ebfbb51518adc

See more details on using hashes here.

File details

Details for the file scidraw_ai-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: scidraw_ai-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for scidraw_ai-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 eaeb3f7e0747b57101b789b91f4c1d18b0d12548b2b601374ccfd5decb24df80
MD5 de4fe377ca306ed8628dca3bb0c39e3f
BLAKE2b-256 7f6473a30b32de4f102f5d2233a08661ad3e876641101bb047ae251da56c881b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page