Top
Best
New

Posted by bramadityaw 11/4/2025

Venn Diagram for 7 Sets(moebio.com)
167 points | 46 comments
haritha-j 11/8/2025|
For usable diagrams, beyond 3 sets, I always recommend upset plots, I wrote a little piece on them rather recently: https://medium.com/@harithajayasinghe/beyond-venn-diagrams-d...
leontrolski 11/8/2025||
Ditto, another Upset blog post - https://leontrolski.github.io/upset.html
turnsout 11/8/2025|||
TIL about upset plots. Really cool! Venn is already unwieldy at three sets, but four is not really doing the job of communicating the set inclusion clearly. Seven is just a geometric curiosity.
Jaxan 11/8/2025||
In all these pictures, the empty set is missing (-: . Of course you could argue that they’re also missing in Venn diagrams, but it’s common to just point on the outside.
bmm6o 11/8/2025|||
One example included the empty set, the other did not. It doesn't always make sense to have it.
amelius 11/8/2025|||
The three lightgray circles in the examples are the empty set.
flobosg 11/7/2025||
Related: the 6-set banana Venn diagram – https://www.nature.com/articles/nature11241/figures/4
Amorymeltzer 11/7/2025|
Still my favorite Venn.

I was in a genetics graduate program when this was published, and this spread like wildfire.

kugestu 11/7/2025||
Really nice theoretical exercise! For practical visualization, an UpSet plot is a great option: https://upset.app/
JSR_FDED 11/8/2025||
TIL! Upset plots are useful and easy to understand.
renewiltord 11/8/2025||
Required attribution notice too big. Can’t see myself using it.
thadk 11/8/2025||
Here's a very rough interactive on more recently published 7-way and 11-way venn: https://observablehq.com/@thadk/venn (with clean-ish svg, cites)

This fork shows an older version with all the shapes turned on and filled with original colors: https://observablehq.com/d/4a5120e490fa9da4

Santiago Ortiz's venn was from 2013 (via archive.org) . I had forgotten I'd seen that, thanks for sharing.

anon291 11/7/2025||
Nice! I wonder if there's a mathematical theorem to describe the possible shapes for a 2-d venn diagram of N sets or if there's an N for which it is no longer possible (or maybe it's possible for all N!?). Probably an application of graph theory and Euler's formula to determine feasibility and then something else to figure out the shape constraints. Never thought about it, but an interesting idea.
madcaptenor 11/7/2025|
It is possible for arbitrary N; one construction is called the Edwards-Venn diagram. See https://happyruin.wordpress.com/2013/03/24/edwards-venn-diag...
vitalnodo 11/7/2025||
I’m wondering what’s the proper way to draw Venn diagrams. I’ve seen that Graphviz has a “nice to have” mention about them, and there are a few simple JS libraries - mostly for two sets. Here’s also my own attempt using an LLM [1].

But maybe someone knows a more general or robust solution - or a better way to achieve this? In the future, I’d like to be able, for example, to find the intersection between two Venn diagrams of three sets each etc.

[1] https://vitalnodo.github.io/FSLE/

tetris11 11/8/2025||
The nVennR library is pretty robust for multiple sets

https://venn.bio-spring.top/intro#nvennr

zem 11/7/2025|||
the comments here https://news.ycombinator.com/item?id=45742907 have some discussion about projects that take a "focused algorithm for various different diagram types" approach vs graphviz's one size fits all approach. worth checking to see if any of them do venn diagrams.
qustrolabe 11/8/2025||
https://www.deepvenn.com/
lisper 11/8/2025||
> I decided to use colors rather than numbers or letters to identify each basic set, though I didn't use the same colors Newton did; mine are equidistant in the hue circle.

"Lawn green" and "medium spring green" look completely identical to me. Maybe I have a really obscure kind of color blindness?

jessriedel 11/8/2025||
I have normal vision. I wouldn't say completely identical when they are side-by-side, but they are very close. It's effectively impossible to discriminate them when they are not side-by-side, which for this plot is very important.

The author's mistake was this: "[my colors] are equidistant in the hue circle". The problem is that the hue circle (at least under the parameterization scheme he used) is not uniform over discrimination, i.e., the ability to discriminate two hues is not invariant under displacing them an equal amount along the circle. (I presume this is one of those situation where it's misleading to think about three primary colors on equal footing because of quirks of human vision biology.)

First, the author could have chosen 7 hues at max-saturation that were easier to discriminate than this. But more importantly, he should have used the other color axes: saturation and brightness. dark red (~maroon) and light red (~pink) are a lot easier to discriminate, even when not next to each other, than the two shades of green he used.

bobsmooth 11/8/2025||
Those colors are similar but obviously distinct to me. Maybe your monitor is the issue?
lisper 11/8/2025||
I thought of that. I'm on a Macbook Air and initially I had Night Shift on but even after I disabled it I still couldn't tell the difference.
bobsmooth 11/9/2025||
Maybe you should take a few color blindness tests.
pohl 11/8/2025||
Yeah, I know that Upset Plots are a better choice for data visualization — as everyone is pointing out — but take a moment to appreciate this beautiful etude for what it is. This nicely executed. I love how this forced the author into some very difficult choices about how to create a large set of convincingly "mixed" colors — which is a very difficult problem even with just 4 overlapping base colors!

In some sense, they "lucked out" by dealing with a prime number of primary color sets, which helped them avoid having multiple pairs of colors that are directly across the wheel from each other.

Very nicely done. It's fun to play with, and inspiring to study.

stared 11/8/2025||
Beautiful (on desktop)!

On mobile it is uncanny valley - I see something, but it is broken.

cubefox 11/7/2025|
The website isn't working for me (Android Firefox/Chrome).
akdor1154 11/7/2025||
Nor Firefox Android, even in Desktop mode.
JoBrad 11/7/2025||
Same for iOS.
More comments...