Show HN: PoliSciPy – A Python library for making Electoral College maps
github.comHi HN! I built PoliSciPy, an open-source Python package for quickly generating customizable, publication-quality U.S. Electoral College maps using matplotlib.
I designed it to be flexible and easy to use: you can merge your own data, define custom colormaps for parties or candidates, and generate maps (including for historical elections) in under 10 lines of code.
Under the hood, I edited a US Census Bureau Shapefile in ArcGIS, applied transformations, computed centroids for labeling, and added some extra features for styling and customization.
PyPI: https://pypi.org/project/poliscipy/
GitHub: https://github.com/poliscipy/poliscipy
Docs: https://poliscipy.github.io/poliscipy/
I would love any feedback on API design, performance, or features you would like to see. I had a lot of fun building it and am happy to answer any questions!