<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 19, 2015 at 11:07 AM, Tommy Grav <span dir="ltr"><<a href="mailto:tgrav@me.com" target="_blank">tgrav@me.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":3ir" class="a3s" style="overflow:hidden">from mpl_toolkits.basemap import Basemap<br>
import matplotlib.pyplot as plt<br>
import numpy as np<br>
<br>
# make sure the value of resolution is a lowercase L,<br>
#  for 'low', not a numeral 1<br>
map = Basemap(projection='merc', lat_0=39.1622, lon_0=-86.5292,<br>
   resolution = 'h', area_thresh = 0.1,<br>
   llcrnrlon=-88.53, llcrnrlat=37.16,<br>
   urcrnrlon=-84.53, urcrnrlat=41.16)<br>
<br>
map.drawcoastlines()<br>
map.drawcountries()<br>
map.drawstates(linewidth=0.5, linestyle="solid", color="r", antialiased=1, ax=None, zorder=None)<br>
map.drawcounties(linewidth=0.1,linestyle="solid", color="k", antialiased=1,<br>
                ax=None, zorder=None, drawbounds=False)<br>
#map.fillcontinents(color='coral')<br>
map.drawmapboundary()<br>
<br>
map.drawmeridians(np.arange(0, 360, 30))<br>
map.drawparallels(np.arange(-90, 90, 30))<br>
<br>
plt.show()</div></blockquote></div><br><br></div><div class="gmail_extra">You can set the "facecolor" of the counties when you call drawcounties(). The problem is getting only certain counties colored. That means you pass a list of colors to "facecolor". The problem there is that you don't know the order in which the counties are processed. I've done this before, but I have to dig up that code... Maybe someone else can beat me to that?<br><br></div><div class="gmail_extra">Ben Root<br></div></div>