lon_ =(urlon lllon lat_ =(urlat lllat llcrnrlat=lllaturcrnrlat=urlatllcrnrlon=lllonurcrnrlon=urlonresolution=' ' drawcoastlines( drawcountries(shp shapefile(/states/statesp 'dbf dbflib open(/states/statesp 'for npoly in range(shp info()[ ])draw colored polygons on the map shpsegs [shp_object shp read_object(npolyverts shp_object vertices(rings len(vertsfor ring in range(rings)lonslats zip(*verts[ring]xy (lonslatsshpsegs append(zip( , )if ring = shapedict dbf read_record(npolyname shapedict['state'lines linecollection(shpsegs,antialiaseds=( ,)state_to_code dicte 'alaska-'ak'omitted tryper obama[state_to_code[name upper()]except keyerrorcontinue lines set_facecolors(' 'lines set_alpha( pershrink the percentage bit lines set_edgecolors(' 'lines set_linewidth( ax add_collection(linesplt show(see figure - for the result example federal election commission database www it-ebooks info