I have a list of state-level data with numbers for each state, e.g.:
AL 10.5
AK 45.6
AZ 23.4
AR 15.0
...
and I want to make it into a weighted map, with darkest where the number is highest and lightest here it is lowest. Is there any software, or a java or python library that can generate such an image?
If you want to build it yourself, all you need is a good map, a set of positions for each state in this map, and flood fill.
Using the map http://www.clker.com/cliparts/S/r/a/w/L/0/black-and-white-u-s-map-hi.png, here is what we get:
The code to build the map above is given by