# draw the outlines of the projection and fill it with color map.drawmapboundary(fill_color="aqua") # fill the continents with color # color stands for continent color, lake_color is the lake color map.fillcontinents(color="green",lake_color="aqua") # draw the costlines map.drawcoastlines()
Show the map.
1 2
plot.savefig('map.png') # save a picture plot.show() # start a console to draw the map
So the complete code would be this:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
import matplotlib.pyplot as plot from mpl_toolkits.basemap import Basemap