User:TastyCakes/Map Maker

Below is a python script I wrote for automatic colouring of maps. It gets the data from a csv file and colours each geographic entity according to a set of cutoff values defined in a list. At the bottom of this file, it creates maps based on this blank map of US states and this blank map of US counties. Unfortunately, the svg files that this program (specifically, the "tree.write" function) produces are pretty ugly if you just open them up and look at them in a text editor. I made some attempts to make it look better, but it ended up just breaking the code. So if you know how to fix that, please let me know.

I am not a very good programmer, and I'm sure this shows in the code below. Sorry about that...