Skip to main content

splotter

PyPI Tests License: MIT

Read SPEC scan files from the command line: list scans, pull values by column name, look up metadata and draw mesh maps that combine several scans.

Three mesh scans and two line scans of a made-up SPEC file on one map, with the unmeasured area hatched gray

Three meshes and two line scans of the made-up file from splotter demo, on one map (reproduce the figure).

The name comes from splot, the plotting command in SPEC. splotter is an independent project and is not affiliated with or endorsed by Certified Scientific Software, the makers of SPEC.

Install

Requires Python 3.13 or later. Install it as a command with uv tool install splotter or pip install splotter, or create a small uv project:

uv init --no-workspace --python 3.13 splotter-demo
uv add --directory splotter-demo splotter

Quick start

No measured data ships with splotter. splotter demo writes a made-up SPEC file, the same one every time. Run this from the directory where you created splotter-demo:

$ uv run -q --directory splotter-demo splotter demo demo.spec
wrote demo.spec
wrote demo_fwhm.csv
$ uv run -q --directory splotter-demo splotter info demo.spec 1 -c imtot Sample_X Sample_Y --top 1 --csv
point,imtot,Sample_X,Sample_Y
301,97699.0,0.4,-0.3

That is the brightest point of the mesh in scan 1. Every command takes the SPEC file first:

splotter info FILE --last 20                 # scan list: start time, duration, points, command
splotter info FILE 2032 669                  # time, motors and counters of one point
splotter info FILE 2032 -c imtot Sample_X    # values by column name
splotter info FILE 2032 --meta               # #T, #Q, #R lines and #UXML metadata
splotter mesh FILE 2032 2036 --log           # map of several scans
splotter rock FILE 2033 --counter imroi1     # rocking curve

Documentation

Development

uv sync
uv run pytest
uv run ruff check
uv run ruff format --check

License

MIT, see LICENSE.

Metadata

Release files for splotter 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 splotter 0.1.1
File Size Uploaded Provenance Actions
splotter-0.1.1.tar.gz 19.7 kB With provenance Details for splotter-0.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 43.8 kB

Release files / splotter-0.1.1.tar.gz

Download URL splotter-0.1.1.tar.gz
Size 19.7 kB
Tags Source
SHA-256 checksum
How to use checksums
c968a486fe6f20cffa4442cd74577dbcbccc610d1b5695aa832c6d24ecd727c1
BLAKE2b-256 checksum
How to use checksums
9da209b9e07898ebdf70184bf9db58a70e1e9c4dfcb27203bb9801cdc51426ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 1, 2026.

Transparency log

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

Download URL splotter-0.1.1-py3-none-any.whl
Size 24.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c1d0306c2dc7bd65e624045979ea23b2251f90840b124105e26e5a090b268ed3
BLAKE2b-256 checksum
How to use checksums
e1cff7f99bbbd12cc39c5a3b058ff352355e5b45021d150a91e8c87ea2b04dca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 1, 2026.

Transparency log

Security for splotter 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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for splotter-0.1.1.tar.gz

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 Nov 1, 2026.

Transparency log

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.

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