
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
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.
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.
# 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.
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.
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")
This project is licensed under the MIT License. See the LICENSE file for details.
Images used in examples are credited to UXWing.
FAQs
Visualize group data by filling images with color proportions.
We found that fillwise demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.