Scientific figures from Python, with measured layout and editable SVG/PDF output.
import inklet as i
data = {'time': [0, 1, 2, 3], 'signal': [1, 3, 2, 4]} # or a pandas/Polars DataFrame
i.line(data, x='time', y='signal').save('signal.pdf', 'signal.svg')
One call gives you a chart sized for a journal column, with measured labels and
vector output. Combine charts into lettered multi-panel figures with | and /,
bring existing matplotlib figures across with i.from_matplotlib(fig), and add
diagrams, images and native 3D artwork on the same millimetre-sized page.
This twenty-panel stress test includes 30,000 scatter points,
5,580 mesh triangles and 7,200 vector events. Its data are simulated. Only the
dense scatter and scalar field are rasterized; the other artwork remains vector.
Start with plots from CSV,
then combine them with measured diagrams, images and 3D in one figure. Shared
scales keep panels comparable; physical dimensions keep type and strokes
consistent when you change the page size. The
plot guide helps choose a
representation, while layout
and export review
cover the finished page.
Inklet 4.0
4.10.0 is stable. It adds house styles (inklet.suite(...)): one
immutable value holding a figure set's fonts, type scale, line weights,
markers, palettes, letters, widths and export settings, with house lint
rules and incremental builds. CFF OpenType faces now embed in PDFs as live
TrueType text, save() writes atomically and can skip unchanged files, and
mosaic panel letters share one baseline. 4.9 added the journal frames of
physics and astronomy figures (preset(..., axes='box') or axes='frame'),
contours of gridded fields with highest-density levels, pre-binned
histograms, one axis title across a grid and panel letters by cell name.
4.8 added free per-facet
scales (facet_scales='free_y'), reference lines on faceted layouts, lint
checks for figures that draw the wrong data, and a Claude Code plugin. 4.6 added charts in one call (i.line(df, x=, y=, color=) and about twenty more), a matplotlib bridge (i.from_matplotlib),
inline notebook display, and tooling for coding agents. 4.5 let a page choose among layout
alternatives and pack panels without a grid. The 4.4 series added about
60 plot types, 98 curated palettes with the new default inklet palette, and a
label placement engine for direct labels and legends. 4.x is the deprecation
series before 5.0: old spellings
and inklet.experimental import paths still work and now warn, naming the
replacement.
From 4.3, microscopy volumes (inklet.volume), keyed selections
(inklet.selection), figure projects (inklet.project) and the layout editor
(inklet.editor) are stable; the rest of inklet.experimental stays opt-in. The supported controls,
saved-file policy and deferred features are listed in the
compatibility guide.
Inklet 5.0 focuses on dense journal figures; animation and presentation authoring move to the 5.x direction.
Install
Python 3.11 or later is required. Install from PyPI: