Simon Willison’s Weblog

Subscribe

Thursday, 12th November 2009

Awkward Suggestions (via) The Google search box “suggest” feature returns very different results depending on the quality of your grammar—“how 2” v.s. “how might one” is particularly illuminating.

# 10:31 am / google, suggest, funny

How to Make a US County Thematic Map Using Free Tools. This is the trick I’ve been using to generate choropleths at the Guardian for the past year: figure out the preferred colours for a set of data in a Python script and then rewrite an SVG file to colour in the areas. I use ElementTree rather than BeautifulSoup but the technique is exactly the same. The best thing about SVG is that our graphics department can export them directly out of Illustrator, with named layers and paths automatically becoming SVG ID attributes. Bonus tip: sometimes you don’t have to rewrite the SVG XML at all, instead you can generate CSS to colour areas by ID selector and inject it in to the top of the file.

# 10:49 am / choropleths, mapping, python, infographics, beautifulsoup, elementtree, css, svg

A set of geodata, or a map, is libre only if somebody can give you a cake with that map on top, as a present.

Ivan Sanchez

# 10:52 am / ivansanchez, caketest, geodata, mapping, openstreetmap

2009 » November

MTWTFSS
      1
2345678
9101112131415
16171819202122
23242526272829
30