Cross-module adapters: scitex.stats ↔ matplotlib annotations, scitex.stats ↔ vis FigureModel, scitex.plt ↔ vis — standalone module from the SciTeX ecosystem
Project description
scitex-bridge
Cross-module adapters between scitex.stats / matplotlib / vis-FigureModel, extracted from the SciTeX ecosystem as a standalone package.
Install
pip install scitex-bridge
API
import scitex_bridge as br
# Add stats results to either backend (auto-detects)
br.add_stats_from_results(target, stat_results, format_style="asterisk")
# Stats → matplotlib annotation
br.add_stat_to_axes(ax, stat_result)
br.format_stat_for_plot(stat_result, style="asterisk")
br.extract_stats_from_axes(ax)
# Stats → vis (FigureModel)
br.stat_result_to_annotation(stat_result)
br.add_stats_to_figure_model(fig_model, stat_results)
br.position_stat_annotation(fig_model, stat_result, prefer_corner="top-right")
# plt ↔ vis
br.matplotlib_to_figure_model(fig)
br.figure_model_to_matplotlib(fig_model)
# Protocols (Position duck-typing target)
from scitex_bridge import Position
Status
Standalone fork of scitex.bridge. Deps: matplotlib + scipy.
Decoupling notes:
scitex.io.bundle.kinds._stats.Position→ vendored as a tiny dataclass in_compat.py. Whenscitex(umbrella) is installed, the real Position is preferred so produced objects round-trip cleanly through bundle code paths.- The optional
scitex.io.bundle.kinds._plot._modelsimports remain insidetry/except ImportErrorso the package works fully standalone.
The umbrella package's scitex.bridge import path is preserved via a
sys.modules-alias bridge.
License
AGPL-3.0-only (see LICENSE).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file scitex_bridge-0.1.7.tar.gz.
File metadata
- Download URL: scitex_bridge-0.1.7.tar.gz
- Upload date:
- Size: 32.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
006554d318fe3fa5beed2f3639cab819eb71bd1a9f41dad4155e451180baab97
|
|
| MD5 |
39446a8bd78feca261c7e4a1be559715
|
|
| BLAKE2b-256 |
7656cb6b37e96c73979017d55465ffe1d0d051bc8962c8ee86050479636ad5b1
|
Provenance
The following attestation bundles were made for scitex_bridge-0.1.7.tar.gz:
Publisher:
publish-pypi.yml on ywatanabe1989/scitex-bridge
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
scitex_bridge-0.1.7.tar.gz -
Subject digest:
006554d318fe3fa5beed2f3639cab819eb71bd1a9f41dad4155e451180baab97 - Sigstore transparency entry: 1396952155
- Sigstore integration time:
-
Permalink:
ywatanabe1989/scitex-bridge@3ff5b57fd5679632a3a5f656fdc1dabc8a358789 -
Branch / Tag:
refs/tags/v0.1.7 - Owner: https://github.com/ywatanabe1989
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@3ff5b57fd5679632a3a5f656fdc1dabc8a358789 -
Trigger Event:
push
-
Statement type:
File details
Details for the file scitex_bridge-0.1.7-py3-none-any.whl.
File metadata
- Download URL: scitex_bridge-0.1.7-py3-none-any.whl
- Upload date:
- Size: 34.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b114b42332acad251c27670dfd7bac569a87a505febfa284b9c52072d065c8df
|
|
| MD5 |
81d1f86a4ee1f5ef182e424cfe01c4cc
|
|
| BLAKE2b-256 |
d1b9ac3b9633be95ba1ae3955d3f236837a332cca17829c9c57b7e737207b779
|
Provenance
The following attestation bundles were made for scitex_bridge-0.1.7-py3-none-any.whl:
Publisher:
publish-pypi.yml on ywatanabe1989/scitex-bridge
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
scitex_bridge-0.1.7-py3-none-any.whl -
Subject digest:
b114b42332acad251c27670dfd7bac569a87a505febfa284b9c52072d065c8df - Sigstore transparency entry: 1396952162
- Sigstore integration time:
-
Permalink:
ywatanabe1989/scitex-bridge@3ff5b57fd5679632a3a5f656fdc1dabc8a358789 -
Branch / Tag:
refs/tags/v0.1.7 - Owner: https://github.com/ywatanabe1989
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@3ff5b57fd5679632a3a5f656fdc1dabc8a358789 -
Trigger Event:
push
-
Statement type: