qten-plots
qten-plots is the plotting extension package for qten.
It provides concrete plotting backends and registers them through the
qten.plottings entry-point group so qten objects can expose a uniform
.plot(...) API without forcing plotting dependencies into the core package.
What It Adds
This extension currently provides plotting implementations for:
Lattice.plot("structure")Tensor.plot("heatmap")Tensor.plot("spectrum")Tensor.plot("column_scatter")Tensor.plot("bandstructure")PointCloud.plot("scatter")
Backends currently included:
plotlymatplotlib
Installation
Install the core package first, then install the plotting extension:
pip install qten
pip install qten-plots
If you use uv from the repository workspace:
uv sync --group dev
How It Works
qten defines the Plottable dispatch mechanism in qten.plottings.
When .plot(...) is called, qten loads all installed entry points in the
qten.plottings group and registers the plotting implementations provided by
extension packages like qten-plots.
This keeps the main qten package focused on tensor and geometry logic while
allowing plotting support to evolve independently.
Example
import sympy as sy
from qten.geometries import Lattice, PeriodicBoundary
lattice = Lattice(
basis=sy.ImmutableDenseMatrix([[1, 0], [0, 1]]),
boundaries=PeriodicBoundary(sy.ImmutableDenseMatrix.diag(4, 4)),
unit_cell={"r": sy.ImmutableDenseMatrix([0, 0])},
)
fig = lattice.plot("structure", backend="plotly", show=False)
fig.show()
To switch backend:
fig = lattice.plot("structure", backend="matplotlib", show=False)
Notes
qten-plotsdepends onqten.- The extension is loaded dynamically through Python package entry points.
- If
qten-plotsis not installed,.plot(...)calls will fail with a backend registration error.
Metadata
Release files for qten-plots 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| qten_plots-0.3.0.tar.gz | 28.8 kB | Without provenance | Details for qten_plots-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| qten_plots-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for qten_plots-0.3.0-py3-none-any.whl |
Total release size: 59.2 kB
Release files / qten_plots-0.3.0.tar.gz
| Download URL | qten_plots-0.3.0.tar.gz |
|---|---|
| Size | 28.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
47465a4e0482aaaefc4d7c63e841620e6863d0598f8e9a5187cc8f5d2982e375
|
|
BLAKE2b-256 checksum How to use checksums |
47f4673b2a71ef3189e61b80cb25f73cf166204ddcf0ec19ce77416a923c05ef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.9
|
Release files / qten_plots-0.3.0-py3-none-any.whl
| Download URL | qten_plots-0.3.0-py3-none-any.whl |
|---|---|
| Size | 30.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e598150fee6da093bfe1836687a9b3f894264178b347fafd29e6cd8dc91cdac4
|
|
BLAKE2b-256 checksum How to use checksums |
b5b36270cca7f56c5e9de3be2973424b7777c45827d6547d8adcd05fc4898ec3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.9
|
Security for qten-plots 0.3.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.