Skip to content

Instantly share code, notes, and snippets.

@addisoneee
Created August 24, 2013 20:02
Show Gist options
  • Save addisoneee/6330137 to your computer and use it in GitHub Desktop.
Save addisoneee/6330137 to your computer and use it in GitHub Desktop.
from mpl_toolkits.basemap import Basemap as bm
import matplotlib.pyplot as plt
#Creates a 3d rendering of North America
map3d = bm(projection='ortho',lat_0=45,lon_0=-100,resolution='l')
#Draws the coastlines and boundaries, colors them
map3d.drawcoastlines(linewidth=0.3)
map3d.drawcountries(linewidth=0.5)
map3d.drawmapboundary(fill_color='aqua')
map3d.fillcontinents(color='white',lake_color='aqua')
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment