Skip to main content

Cross-module adapters: scitex.stats ↔ matplotlib annotations, scitex.stats ↔ vis FigureModel, scitex.plt ↔ vis — standalone module from the SciTeX ecosystem

Project description

scitex-bridge

PyPI Python Tests Install Test Coverage Docs License: AGPL v3

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. When scitex (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._models imports remain inside try/except ImportError so 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

scitex_bridge-0.1.1.tar.gz (32.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

scitex_bridge-0.1.1-py3-none-any.whl (34.3 kB view details)

Uploaded Python 3

File details

Details for the file scitex_bridge-0.1.1.tar.gz.

File metadata

  • Download URL: scitex_bridge-0.1.1.tar.gz
  • Upload date:
  • Size: 32.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for scitex_bridge-0.1.1.tar.gz
Algorithm Hash digest
SHA256 adb72a75c6c75e5b3c4595269d53a562eda05d1f71c6ec87572865cfebeccb28
MD5 1fad804f7bb75011d6679faa3dcc4c50
BLAKE2b-256 b9094acb4509310e0bd8f0c7b855e9edba3353f15810d99934cc11c5bff784eb

See more details on using hashes here.

Provenance

The following attestation bundles were made for scitex_bridge-0.1.1.tar.gz:

Publisher: publish-pypi.yml on ywatanabe1989/scitex-bridge

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file scitex_bridge-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: scitex_bridge-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 34.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for scitex_bridge-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1870e553ec7e7bab4b5a79884bdf79aeba33aabd048e28adf4a84a13ae8f7d9f
MD5 2ff0c4cbcf063e8c901a733895a263e1
BLAKE2b-256 9f2004b4bfd9e844ea46da6dec0b30ac7093d6d53b05572a59c7d7ee0786ceef

See more details on using hashes here.

Provenance

The following attestation bundles were made for scitex_bridge-0.1.1-py3-none-any.whl:

Publisher: publish-pypi.yml on ywatanabe1989/scitex-bridge

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page