here are dot density maps for yesterday's #chicago mayoral race:

https://observablehq.com/@fgregg/2023-mayoral-election-dot-density-maps

2023 Mayoral Election, Dot density maps

Here is a dot-density map of voters for the 2023 general mayoral election. Each dot represent voters. Paul Vallas got votes to Johnsons's , Lightfoot's , and Garcia's .

Observable
@fgregg If you ever need a Python tool to generate your dots, I made this a couple years ago https://github.com/eyeseast/dorchester
GitHub - eyeseast/dorchester: A toolkit for making dot-density maps in Python

A toolkit for making dot-density maps in Python. Contribute to eyeseast/dorchester development by creating an account on GitHub.

GitHub

@chrisamico beautiful!

i actually implemented something convergent myself.

https://github.com/fgregg/chicago-dots/blob/main/src/points.py

it's heavily numpy-ified so it might be worth bringing some of those ideas over to your library?

chicago-dots/points.py at main · fgregg/chicago-dots

The finest dots available for chicago. Contribute to fgregg/chicago-dots development by creating an account on GitHub.

GitHub

@fgregg Very open to PRs, especially anything that makes it faster. I don’t use numpy much, so I’m sure I’m not getting the most out of it.

I also need to upgrade to the latest Shapely. That might do a lot.