y-sunflower

Simulate colorblindness in Python charts

25
1
100% credibility
Found Feb 09, 2026 at 13 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
Python
AI Summary

realcolor is a Python package that simulates how people with various types of colorblindness perceive charts made with common plotting tools.

How It Works

1
📊 Draw your colorful chart

You create a graph with lines or points in different colors to show off your data story.

2
💡 Think about viewers with color vision differences

You want to make sure everyone, including colorblind folks, can tell your colors apart easily.

3
🛠️ Bring in the color preview tool

You add this simple helper that shows how colorblind people see things.

4
👁️ See the magic simulation

With one quick action, your chart transforms into side-by-side views just like colorblind eyes would see them.

5
📊 Check color friendliness scores

You test your colors and get numbers showing how well they stand out for different vision types.

6
🎨 Adjust colors for perfection

You tweak shades until the previews look clear and scores are high across the board.

🎉 Share charts everyone loves

Your graphs now work beautifully for all viewers, making your data accessible and easy to understand.

Sign up to see the full architecture

5 more

Sign Up Free

Star Growth

See how this repo grew from 13 to 25 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is realcolor?

realcolor is a Python package that simulates colorblindness on matplotlib charts—including seaborn and plotnine—so you can see exactly how deuteranopia, protanopia, tritanopia, or desaturated vision alters your plots. Just pass your figure to simulate_colorblindness() for instant side-by-side views, or score palettes with colorblind_score() to quantify distinguishability (0-100 scale). It solves the common blind spot in data viz: ensuring charts are accessible to 8% of male viewers without endless manual tweaks.

Why is it gaining traction?

Its one-function API delivers visuals right after plotting, with severity sliders (0-100) and type-specific filters—no setup beyond pip install. Unlike static LUT tools like realcolor iii or realcolors me, it integrates live into Python workflows for charts, beating browser extensions or Photoshop hacks. Developers hook on the scoring output, pinpointing worst color pairs like red-green clashes.

Who should use this?

Data scientists building dashboards or reports in Jupyter. ML engineers plotting model outputs for stakeholders. Python viz teams auditing seaborn heatmaps or plotnine geoms before publication—especially if colorblind-friendly palettes are a recurring pain.

Verdict

Worth adding to your viz toolkit for fast accessibility checks; clear docs and pytest coverage make it reliable despite 13 stars and 1.0% credibility score. Still beta—file issues for more libraries—but it beats guessing on colorblindness every time.

(178 words)

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.