Skip to main content

SciTeX Plt (scitex-plt)

SciTeX Plt

Publication-ready plotting with auto CSV export — sys.modules alias for figrecipe

Full Documentation · uv pip install scitex-plt[all]

pypi python docs

tests install-check quality cov


Problem and Solution

# Problem Solution
1 Matplotlib boilerplate for publication figures — manually setting DPI, fonts, axis labels, CSV sidecars, and mm-precision layout for every paper figure stx.plt.subplots() — thin wrapper around figrecipe returning a tracked axes with .plot_line(...), set_xyt(...), and publication-ready defaults
2 Figure and underlying data drift apart — the PNG lives in the repo, the CSV that generated it sits in a notebook cell and eventually disappears Auto CSV export on save — stx.io.save(fig, "plot.png") writes plot.png + plot.csv + plot.yaml atomically so the data is always reproducible
3 No way for AI agents to generate figures — coding agents need a structured API, not matplotlib's stateful pyplot MCP tools (plt_line, plt_scatter, plt_stx_*) — agents compose publication plots from CSVs via column specs, no inline arrays needed

Installation

pip install scitex-plt

This installs figrecipe as a dependency. scitex-plt is a sys.modules alias: scitex_plt is figrecipe evaluates to True after import.

Architecture

flowchart LR
    user["user code\nimport scitex_plt as plt"] -->|"sys.modules alias"| fr["figrecipe\n(actual implementation)"]
    fr --> mpl["matplotlib"]
    fr --> save["stx.io.save(fig, 'plot.png')"]
    save --> png[("plot.png")]
    save --> csv[("plot.csv\n(auto-tracked data)")]
    save --> yaml[("plot.yaml\n(recipe / params)")]

4 Interfaces

scitex-plt exposes the same four-interface surface as the rest of the SciTeX ecosystem (delegated to figrecipe):

Python API — import scitex_plt as plt
import scitex_plt as plt

fig, ax = plt.subplots()
ax.plot([1, 2, 3], [1, 4, 9])
plt.save(fig, "figure.png")  # writes figure.png + figure.csv
CLI — scitex-plt --help
scitex-plt --help
scitex-plt info
MCP tools — plt_* namespace

AI agents call plt_line, plt_scatter, plt_stx_* etc. from CSV column specs.

Skills — figrecipe skill loaded by agents at startup

Loaded automatically by SciTeX-aware agents.

Demo

flowchart LR
    data[("session.csv")] --> load["stx.io.load"]
    load --> arr["NumPy / DataFrame"]
    arr --> ax["ax.plot_line(...)\nax.set_xyt(...)"]
    ax --> fig["fig"]
    fig --> savefig["stx.io.save(fig, 'plot.png')"]
    savefig --> png[("plot.png")]
    savefig --> sidecar[("plot.csv\nplot.yaml")]

Quick Start

import scitex_plt as plt

fig, ax = plt.subplots()
ax.plot([1, 2, 3], [1, 4, 9])
plt.save(fig, "figure.png")  # writes figure.png + figure.csv

Part of SciTeX

scitex-plt is part of SciTeX — a Python framework for reproducible scientific computing. It is the namespace alias for figrecipe, used by sibling packages such as scitex-stats, scitex-io, and scitex-clew.

Install via pip install scitex[plt], then use scitex.plt from Python or scitex plt from the CLI.

pip install scitex[plt]   # pulls scitex-plt as part of the umbrella
import scitex as stx
stx.plt.subplots()        # routed through scitex.plt → figrecipe
scitex plt --help         # umbrella subcommand

The SciTeX system follows the Four Freedoms for Research below, inspired by the Free Software Definition:

Four Freedoms for Research

  1. The freedom to run your research anywhere — your machine, your terms.
  2. The freedom to study how every step works — from raw data to final manuscript.
  3. The freedom to redistribute your workflows, not just your papers.
  4. The freedom to modify any module and share improvements with the community.

AGPL-3.0 — because we believe research infrastructure deserves the same freedoms as the software it runs on.


SciTeX

Metadata

Release files for scitex-plt 0.24.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for scitex-plt 0.24.10
File Size Uploaded Provenance Actions
scitex_plt-0.24.10.tar.gz 8.8 MB With provenance Details for scitex_plt-0.24.10.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for scitex-plt 0.24.10
File Interpreter ABI Platform Actions
scitex_plt-0.24.10-py3-none-any.whl Python 3 none any Details for scitex_plt-0.24.10-py3-none-any.whl

Total release size: 17.3 MB

Release files / scitex_plt-0.24.10.tar.gz

Download URL scitex_plt-0.24.10.tar.gz
Size 8.8 MB
Tags Source
SHA-256 checksum
How to use checksums
ca0be3f3f67a53a480e0d93555ee934aa030ca95496f5129660e1f87713ba990
BLAKE2b-256 checksum
How to use checksums
f25db6d75e893595c0c57753c717e73b5830ae753780b63344ad03787a0a8079
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 Dec 2, 2026.

Transparency log

Release files / scitex_plt-0.24.10-py3-none-any.whl

Download URL scitex_plt-0.24.10-py3-none-any.whl
Size 8.5 MB
Tags Python 3
SHA-256 checksum
How to use checksums
02f8e682761a0f165d3119344a45ad8608ee0fc50973c2199c53956554d99515
BLAKE2b-256 checksum
How to use checksums
9982db2e3b2097f7ad0fa20a8aa2b50e2b31194f5a5fd1cc62f72f445b2b4589
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 Dec 2, 2026.

Transparency log

Security for scitex-plt 0.24.10

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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for scitex_plt-0.24.10.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 Dec 2, 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