Skip to content

Instantly share code, notes, and snippets.

@rcalsaverini
Created May 2, 2013 23:11
Show Gist options
  • Save rcalsaverini/5506165 to your computer and use it in GitHub Desktop.
Save rcalsaverini/5506165 to your computer and use it in GitHub Desktop.
from mpl_toolkits.basemap import Basemap
import numpy as np
import matplotlib.pyplot as plt
m = Basemap(llcrnrlon=-73.45,llcrnrlat=-35,urcrnrlon=-30.1,urcrnrlat=6, resolution='i',projection='lcc',lon_0=-45,lat_0=-23.7)
m.drawcoastlines()
m.fillcontinents(color='beige',lake_color='aqua')
# draw parallels and meridians.
m.drawparallels(np.arange(-40,10,1.))
m.drawmeridians(np.arange(-80.,-0,1.))
m.drawmapboundary(fill_color='aqua')
plt.title("Cassini Projection")
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment