matplotlib-sankey
Documentation | PyPI | Github repository | Codecov
Sankey plot for matplotlib
Installation
Install with pip:
pip install matplotlib-sankey
Install with uv:
uv add matplotlib-sankey
Install from source:
git clone https://github.com/harryhaller001/matplotlib-sankey
cd matplotlib-sankey
pip install -e .
Example
data = [
# (source index, target index, weight)
[(0, 2, 20), (0, 1, 10), (3, 4, 15), (3, 2, 10), (5, 1, 5), (5, 2, 50)],
[(2, 6, 40), (1, 6, 15), (2, 7, 40), (4, 6, 15)],
[(7, 8, 5), (7, 9, 5), (7, 10, 20), (7, 11, 10), (6, 11, 55), (6, 8, 15)],
]
fig, ax = plt.subplots(figsize=(10, 5))
fig.tight_layout()
sankey(
data=data,
cmap="tab20",
annotate_columns=True,
ax=ax,
spacing=0.03,
)
Development
git clone https://github.com/harryhaller001/matplotlib-sankey
cd matplotlib-sankey
# Create virtual env with uv
uv venv
# Install dev dependencies
make install
# Run all checks
make check
Metadata
Release files for matplotlib-sankey 0.3.2
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 |
|---|---|---|---|---|
| matplotlib_sankey-0.3.2.tar.gz | 9.4 kB | Without provenance | Details for matplotlib_sankey-0.3.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| matplotlib_sankey-0.3.2-py3-none-any.whl | Python 3 | none | any | Details for matplotlib_sankey-0.3.2-py3-none-any.whl |
Total release size: 20.6 kB
Release files / matplotlib_sankey-0.3.2.tar.gz
| Download URL | matplotlib_sankey-0.3.2.tar.gz |
|---|---|
| Size | 9.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4244853b32e38bc1569dd23fe782731486faa6e74bdc97f48154ef2180a2070b
|
|
BLAKE2b-256 checksum How to use checksums |
7143676dd09556fcd8c778e66606ca9707b94aa7fff10d8df7ba33e094dabf5b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / matplotlib_sankey-0.3.2-py3-none-any.whl
| Download URL | matplotlib_sankey-0.3.2-py3-none-any.whl |
|---|---|
| Size | 11.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
db7a579e1999c42534f6f54a6ffd4402dea0197920a945adce2f968df24099cd
|
|
BLAKE2b-256 checksum How to use checksums |
e5c9d1022fd88a64566b9ef5c90097c8204e56dff05f264b9c761b4d1c08e3d2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for matplotlib-sankey 0.3.2
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.