{% from 'thumb.html' import preview with context %}
Inklet places plots, diagrams, images and 3D scenes on a page with physical dimensions. It measures labels, ticks and legends before fitting the data, then writes SVG, PDF and PNG from the same geometry.
pip install inkletRequires Python 3.11 or later. See installation options for rendering extras.
Thirteen panels on a 183 mm page with the scientific.cell preset: 6 pt text, 0.25 pt hairlines and legends placed in empty data space. Each panel is a plot or diagram in a 12-column document.
examples/dense_figure.py. All data are simulated.Besides lines, bars, histograms and heatmaps, each of these is one method on a plot.
{{ (own or entry.methods)|first }}{% endfor %}{% endfor %}
This script builds the two-panel figure from the first figure tutorial. The double-column preset fixes the page width at 183 mm, and Inklet sizes each plot region around its measured labels.
Presets such as single-column (89 mm) and double-column (183 mm) set the page width and type size. Type and strokes keep their size when the page changes.
Axis labels, tick labels and legends are measured with the embedded fonts before the data region is placed, so panels in a row keep aligned data areas. See figures and layout.
SVG and PDF are written from one resolved geometry, with text embedded as editable text. lint() reports small text, thin strokes and overlaps. See export and review.
Update a dataset and compile again. Earlier snapshots stay unchanged, and each revision is recorded in the metadata.
Each section starts with an overview page of examples.