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.6

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.6
File Size Uploaded Provenance
scitex_plt-0.24.6.tar.gz 8.8 MB With provenance Details

Built distribution (wheel)

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

Total release size: 17.2 MB

Release files / scitex_plt-0.24.6.tar.gz

Download URL scitex_plt-0.24.6.tar.gz
Size 8.8 MB
Tags Source
SHA-256 checksum
How to use checksums
199d4622bb2c46344e8d6a2c3693b4f886977509743aeeedab8321d29f701414
BLAKE2b-256 checksum
How to use checksums
12a9e41d41a6c1e1551999ebc1165607d8c9a1b4e4eb203e732317c6963ca9c5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 May 24, 2026.

Transparency log

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

Download URL scitex_plt-0.24.6-py3-none-any.whl
Size 8.4 MB
Tags Python 3
SHA-256 checksum
How to use checksums
df19f48b283c0fa9b137cd390217760f0eac3b9827cd9dd1f8da91582e74221d
BLAKE2b-256 checksum
How to use checksums
fbd66a151ca07f14bf490fa558ddc1099884a99ce621056cf0d8ceb2ee44bd44
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 May 24, 2026.

Transparency log

Security for scitex-plt 0.24.6

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 scitex_plt-0.24.6.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 May 24, 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.

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