我成功地使用了map.readshape文件(' square',' dir',drawbounds = True,linewidth = 1.5,color =' k')读取形状文件。但是,我在填充颜色方面遇到了麻烦。填充内置形状非常简单,只需" fill_color ="在论证中。这似乎不适用于通过readshapefile导入的自定义形状。有不同的语法吗?这有可能吗?
编辑:
m = Basemap(projection='merc',
llcrnrlat = 37.807788,
llcrnrlon = -79.654973,
urcrnrlat = 39.8277290,
urcrnrlon = -74.864372,
resolution = 'c')
m.readshapefile('square', 'dir', drawbounds=True, linewidth=1.5, color='k')