File: background4.py

package info (click to toggle)
basemap 2.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 213,536 kB
  • sloc: python: 11,826; sh: 45; makefile: 41
file content (8 lines) | stat: -rw-r--r-- 328 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
from mpl_toolkits.basemap import Basemap
import matplotlib.pyplot as plt
# setup Lambert Conformal basemap.
# set resolution=None to skip processing of boundary datasets.
m = Basemap(width=12000000,height=9000000,projection='lcc',
            resolution=None,lat_1=45.,lat_2=55,lat_0=50,lon_0=-107.)
m.shadedrelief()
plt.show()