m.drawmapboundary(fill_color=oceanColor)

def drawShapesFromFile(filename, facecolor, edgecolor, m):
    m.readshapefile(filename, 'temp', drawbounds=False)
patches = []
for info, shape in zip(m.temp_info, m.temp):
    patches.append(Polygon(np.array(shape), True))
ax.add_collection(PatchCollection(patches, facecolor=facecolor, edgecolor=
    edgecolor, linewidths=1))
drawShapesFromFile('\\Conda\\notebooks\\shapes\\ne_10m_land', landColor,
    coastColor, m)
drawShapesFromFile('\\Conda\\notebooks\\shapes\\ne_10m_urban_areas',
    popColor, 'none', m)
m.drawcounties(color=countyColor)
plt.gcf().set_size_inches(10, 10)
Использование Python для построения фигур Natural Earth в виде многоугольников в базовой карте Matplotlib