Aucune description

americas.py 389B

12345678910111213
  1. from pygal.maps.world import World
  2. wm = World()
  3. wm.force_uri_protocol = 'http'
  4. wm.title = 'North, Central, and South America'
  5. wm.add('North America', ['ca', 'mx', 'us'])
  6. wm.add('Central America', ['bz', 'cr', 'gt', 'hn', 'ni', 'pa', 'sv'])
  7. wm.add('South America', ['ar', 'bo', 'br', 'cl', 'co', 'ec', 'gf',
  8. 'gy', 'pe', 'py', 'sr', 'uy', 've'])
  9. wm.render_to_file('americas.svg')