Skip to main content

LabPlotLib

LabPlotLib is a small Python library containing plotting-style helpers and a searchable collection of mathematical symbols.

Installation

Install the latest source checkout with pip:

python -m pip install .

For development, install it in editable mode:

python -m pip install -e .

Symbol utilities

from labplotlib import print_symbols, search, symbols

print(symbols["set_union"])
print(search("fraction"))
print_symbols(search("fraction_one"))

The symbols mapping is read-only. search(name_part) returns a read-only mapping of symbol names containing name_part (case-insensitive).

Plotting

from labplotlib import errorbar_plot, line_plot, scatter_with_fit

line_plot([1, 2, 3], [1, 4, 9], title="Squares", xlabel="x", ylabel="y")
scatter_with_fit(x, y, degree=1, filename="fit.png", save_directory="plots")
errorbar_plot(x, y, yerr=err, show=False)  # returns the matplotlib Figure

Each function returns the Figure. Pass filename (and optionally save_directory, created if missing) to save, and show=False to skip plt.show(). Importing the package does not change global matplotlib settings; the plot functions apply the Seaborn theme via apply_theme(), which you can also call yourself. Lower-level helpers style_axis and finish_plot are public too.

Development

python -m pip install -e ".[dev]"
ruff check .
python -m unittest discover -s tests

The version lives in src/labplotlib/__init__.py; see CHANGELOG.md for release notes.

Publishing

Publishing is automated when a GitHub Release is published. Configure a PyPI trusted publisher for this repository with:

  • Owner and repository: the values for this GitHub project
  • Workflow: .github/workflows/publish.yml
  • Environment: pypi

Then update the version in pyproject.toml, push the change, and create a GitHub Release with a matching version tag (for example, v0.1.1). The workflow runs the tests, builds the distributions, and publishes them without requiring a PyPI API token in GitHub secrets.

Metadata

Release files for labplotlib 0.2.0

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

Source distribution (sdist)

Source distribution for labplotlib 0.2.0
File Size Uploaded Provenance Actions
labplotlib-0.2.0.tar.gz 8.5 kB Without provenance Details for labplotlib-0.2.0.tar.gz

Built distribution (wheel)

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

Total release size: 15.7 kB

Release files / labplotlib-0.2.0.tar.gz

Download URL labplotlib-0.2.0.tar.gz
Size 8.5 kB
Tags Source
SHA-256 checksum
How to use checksums
e7991f657d84358bf429f00559f16b2b093ed21e0fd6c4d90b87a49401929bd7
BLAKE2b-256 checksum
How to use checksums
1502b88691304b66505751e09ccdbc4e285bf2659c3bae622e59ddcfc9a4834c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.10

Release files / labplotlib-0.2.0-py3-none-any.whl

Download URL labplotlib-0.2.0-py3-none-any.whl
Size 7.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
119e033d6eb91d76b7dad331f7b7ea9790417b35bc56bb53af7ceb0ca58d4f62
BLAKE2b-256 checksum
How to use checksums
58b7e1c179156c6a286279d210c9d0f486b5ba934adf3cce2b04f06a5eae3203
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.10

Security for labplotlib 0.2.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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