matplotlib-sankey

Sankey diagram for matplotlib

https://github.com/harryhaller001/matplotlib-sankey

Science Score: 67.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 2 DOI reference(s) in README
  • Academic publication links
    Links to: zenodo.org
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (8.5%) to scientific vocabulary

Keywords

matplotlib
Last synced: 4 months ago · JSON representation ·

Repository

Sankey diagram for matplotlib

Basic Info
Statistics
  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 4
Topics
matplotlib
Created about 1 year ago · Last pushed 6 months ago
Metadata Files
Readme License Citation

README.md

matplotlib-sankey

codecov Version PyPI - Python Version GitHub Actions Workflow Status DOI

Documentation | PyPI | Github repository | Codecov

Sankey plot for matplotlib

Installation

Install with pip:

pip install matplotlib-sankey

Install from source:

bash git clone https://github.com/harryhaller001/matplotlib-sankey cd matplotlib-sankey pip install .

Example

```python 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.tightlayout() sankey( data=data, cmap="tab20", annotatecolumns=True, ax=ax, spacing=0.03, ) ```

Sankey plot example

Development

```bash python3.10 -m virtualenv venv source venv/bin/activate

Install dev dependencies

make install ```

Owner

  • Login: harryhaller001
  • Kind: user

Citation (CITATION.cff)

cff-version: 1.2.0
message: "If you use matplotlib-sankey, please cite it as below."
authors:
  - family-names: "Hellmig"
    given-names: "Malte"
    orcid: "https://orcid.org/0000-0002-6692-5618"
  - family-names: "Krebs"
    given-names: "Christian F."
    orcid: "https://orcid.org/0000-0003-2739-5578"
title: "matplotlib-sankey"
version: 0.3.0
date-released: 2025-05-14
url: "https://github.com/harryhaller001/matplotlib-sankey"
identifiers:
  - type: doi
    value: 10.5281/zenodo.15420062

GitHub Events

Total
  • Release event: 3
  • Public event: 1
  • Push event: 19
  • Create event: 3
Last Year
  • Release event: 3
  • Public event: 1
  • Push event: 19
  • Create event: 3

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 156 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 3
  • Total maintainers: 1
pypi.org: matplotlib-sankey

Sankey plot for matplotlib

  • Versions: 3
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 156 Last month
Rankings
Dependent packages count: 9.2%
Average: 30.6%
Dependent repos count: 52.0%
Maintainers (1)
Last synced: 4 months ago