Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question on dot blending #4

Open
csciuto opened this issue Dec 28, 2018 · 0 comments
Open

Question on dot blending #4

csciuto opened this issue Dec 28, 2018 · 0 comments

Comments

@csciuto
Copy link

csciuto commented Dec 28, 2018

Sorry if you get this twice, I wrote to the demographers without thinking it might be better to ask about the code! I was reading an article today talking about the incredible concentration of black people in jails, and how the Racial Dot Map reflects that. I was curious about my local jail, which showed up green (black) as predicted. However, my county is overwhelmingly white and then hispanic, so the incarceration rate for black people would have to be stratospheric. By finding the related Census data I was able to confirm that that institutionalized population for that area is in fact 70%+ white non-hispanic.

It's possible that data is wrong and the map is correct, but I am curious, so, I went digging into the code:

pg.stroke(255,0,0, transparent(level));

If I'm reading this correctly, if the population density is so high you can't draw separate dots at max zoom, only the last dot is drawn since the transparency is set to zero. Since the dots are drawn in a certain order by race

https://github.com/unorthodox123/RacialDotMap/blob/master/dotfile.py#L155

you will pretty much always draw black people over white people, hispanic people over blacks, etc.

Does this make sense? If so, would it be possible to randomize either the writing to the CSV or the reading from it?

Thanks and Happy New Year,

Corey

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant