What is scilayout?
[!WARNING]
This package is in beta.
pip install scilayout
Scilayout is a Python package to make creating multi-panel scientific figures easier, faster, and maybe a little bit more fun. The core idea is to build figures using coordinates in centimetres from the top left using interactive plotting. This approach has a few main benefits:
- The iterative process of building figures up from scratch is easier.
- Complex layouts can be interchanged more easily.
- Exported figure sizes are explicitly stated (in centimetres) for seamless embedding in documents.
There are many guides for Matplotlib styling for scientific publication, and there are a number of packages that make this process easier (e.g. SciencePlots), but this scilayout supports the creation of figures which are 100% ready for embedding in documents.
import scilayout
fig = scilayout.figure() # it's a matplotlib figure like plt.figure()
myax = fig.add_panel((1, 1, 5, 5)) # creates a panel with position specified in cm
# %%
myax.set_location((2, 10, 5, 3), method='size') # move the panel after it's been created and set it's location and dimensions based on size (5x3cm dimensions from 2cm down and 10 cm left)
This package is designed for people with:
- A basic understanding of
matplotlib'sAxesobject and how to work with it (rather than only usingplt, the differences described here) - A desire to produce figures entirely in code (example approaches described in blogposts from brushingupscience.com and dendwrite.substack)
Metadata
Release files for scilayout 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| scilayout-0.1.2.tar.gz | 33.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| scilayout-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 66.2 kB
Release files / scilayout-0.1.2.tar.gz
| Download URL | scilayout-0.1.2.tar.gz |
|---|---|
| Size | 33.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
072de89591245f7d677f9651ad5c0229e9dfb740f6a880f07a167df72bb29f5a
|
|
BLAKE2b-256 checksum How to use checksums |
d393ef245f27af0203391e1a60392e7d4e6966d6c03213c2491f3b08abdec289
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 19, 2025.
Transparency logRelease files / scilayout-0.1.2-py3-none-any.whl
| Download URL | scilayout-0.1.2-py3-none-any.whl |
|---|---|
| Size | 32.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
39c234b0c2030fb4ce12e5c043440c332f4a43d9bb6c6c569908d00c8d6fd4da
|
|
BLAKE2b-256 checksum How to use checksums |
8535cd6a1056c8bfca9e08fa09f170585b5da002b08acff124ec510da62069b1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 19, 2025.
Transparency log