Easily create and customize bump charts in Python
Project description
bumplot: easily create and customize bump charts in Python
bumplot is a small Python package made to facilitate the creation of
bump charts using matplotlib and Bézier curves. It has high
customization capabilities too!
Bump charts are useful when the focus is on comparing relative rankings—who is ahead of whom—rather than the exact magnitude of the differences.
Check out the online documentation
Get started
import matplotlib.pyplot as plt
import pandas as pd
from bumplot import bumplot
data = pd.DataFrame(
{
"x": [2020, 2021, 2022, 2023],
"A": [10, 50, 20, 80],
"B": [40, 30, 60, 10],
"C": [90, 20, 70, 40],
}
)
fig, ax = plt.subplots(figsize=(8, 4))
bumplot(
x="x",
y_columns=["A", "B", "C"],
data=data,
curve_force=0.5,
plot_kwargs={"lw": 4},
scatter_kwargs={"s": 150, "ec": "black", "lw": 2},
colors=["#ffbe0b", "#ff006e", "#3a86ff"],
)
ax.legend()
ax.spines[["top", "right", "left", "bottom"]].set_visible(False)
ax.grid(alpha=0.4)
Installation
pip install bumplot
Features
- Automatic ranking of your data (with support for both
pandasandpolars) - Accept categorical data for x-axis
- Infinite customization capabilities
- Easy control of the curvature intensity
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bumplot-0.2.1.tar.gz.
File metadata
- Download URL: bumplot-0.2.1.tar.gz
- Upload date:
- Size: 100.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2e395d35a2df7c0ed8595c32a960d0d6e5dfffabda751194ccf07b6581a6945a
|
|
| MD5 |
d0218602db2243686e9f83da18a6eb80
|
|
| BLAKE2b-256 |
228b584fa73adfa5478e827344e4b20074ed50a4af87f0499cf40e799f18b70c
|
Provenance
The following attestation bundles were made for bumplot-0.2.1.tar.gz:
Publisher:
pypi.yaml on y-sunflower/bumplot
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bumplot-0.2.1.tar.gz -
Subject digest:
2e395d35a2df7c0ed8595c32a960d0d6e5dfffabda751194ccf07b6581a6945a - Sigstore transparency entry: 867768247
- Sigstore integration time:
-
Permalink:
y-sunflower/bumplot@a97652c3a48423710af5f7fc133d4e0534f42ef8 -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/y-sunflower
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yaml@a97652c3a48423710af5f7fc133d4e0534f42ef8 -
Trigger Event:
push
-
Statement type:
File details
Details for the file bumplot-0.2.1-py3-none-any.whl.
File metadata
- Download URL: bumplot-0.2.1-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e99414f2fb402bad4654bb8e31e4873d43316dcf4d067113a160b4dc8ae16b76
|
|
| MD5 |
ced79087ab49ba2a50c71509f1a95eb6
|
|
| BLAKE2b-256 |
1be270ac5746af9f9ce87742e0e49e53c9f1d35589aaf4a55312d60100601fb4
|
Provenance
The following attestation bundles were made for bumplot-0.2.1-py3-none-any.whl:
Publisher:
pypi.yaml on y-sunflower/bumplot
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bumplot-0.2.1-py3-none-any.whl -
Subject digest:
e99414f2fb402bad4654bb8e31e4873d43316dcf4d067113a160b4dc8ae16b76 - Sigstore transparency entry: 867768269
- Sigstore integration time:
-
Permalink:
y-sunflower/bumplot@a97652c3a48423710af5f7fc133d4e0534f42ef8 -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/y-sunflower
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yaml@a97652c3a48423710af5f7fc133d4e0534f42ef8 -
Trigger Event:
push
-
Statement type: