Fillwise 
Visualize group data by filling images with color proportions.
Fillwise is a Python module for visualizing group data by filling images with color proportions. It can be used for custom charts, data art, and creative data storytelling.
Usage
pip install fillwise
import pandas as pd
from fillwise import Fillwise
# Sample data
df = pd.DataFrame({
"Fruits": ["Apple", "Banana", "Cherry"],
"Counts": [20, 35, 45]
})
# Usage of Fillwise
fw = Fillwise(df, mask_path="cart.png", fill_style="horizontal")
# Save
fw.save("output.png")
# Display using system default image viewer
fw.show()
| Before | After |
|---|---|
Sample image credit from UXWing. The data presented here are made-up only.
Fillwise Output with Matplotlib
# Usage of Fillwise
fw = Fillwise(df, image_path=image_path, fill_style="radial")
image = fw.render()
# Sample Plotting
fig, ax = plt.subplots()
ax.imshow(image)
ax.axis("off")
patches = [mpatches.Patch(color=color, label=label)
for color, label in zip(fw.colors, fw.labels)]
ax.set_title("Game Genre Preferences",
fontweight='bold', fontsize=16)
ax.legend(handles=patches, loc="center left", bbox_to_anchor=(1, 0.5),
frameon=True)
plt.tight_layout()
plt.show()
Sample image credit from UXWing. The data presented here are made-up only.
Fill Styles
Fillwise supports multiple fill styles to suit different image shapes and storytelling needs:
| Style | Description | Best For |
|---|---|---|
horizontal |
Fills left to right | Wide images like carts |
vertical |
Fills top to bottom | Tall silhouettes |
radial |
Fills outward from the center | Symmetrical shapes |
You can switch styles by setting fill_style="..." when creating a Fillwise instance.
Image Masks
You can use any transparent PNG image as a mask. Fillwise fills only the visible (non-transparent) pixels.
fw = Fillwise(df, image_path="your_mask.png", fill_style="horizontal")
License
This project is licensed under the MIT License. See the LICENSE file for details.
Attribution
Images used in examples are credited to UXWing.
Metadata
Release files for fillwise 1.0.1
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 |
|---|---|---|---|---|
| fillwise-1.0.1.tar.gz | 8.4 kB | Without provenance | Details for fillwise-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fillwise-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for fillwise-1.0.1-py3-none-any.whl |
Total release size: 16.4 kB
Release files / fillwise-1.0.1.tar.gz
| Download URL | fillwise-1.0.1.tar.gz |
|---|---|
| Size | 8.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5f6383381a1d220b26ce74b9600a620f6389b457d509eb962ee6bcd83771fb7c
|
|
BLAKE2b-256 checksum How to use checksums |
c9c07599a6f3a24e4ef8d7610a719138368a55f93d6fbda8b2fd887f202429fe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|
Release files / fillwise-1.0.1-py3-none-any.whl
| Download URL | fillwise-1.0.1-py3-none-any.whl |
|---|---|
| Size | 8.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2452175bfc2c0acd9f8f78bd3d69e166c40abb0d381c8ff337cff6bce3659229
|
|
BLAKE2b-256 checksum How to use checksums |
4bf3c1fa12f589b4f2f41d7d29b69424658602cc60dec58be3007593f6d4491f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|
Security for fillwise 1.0.1
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.