File: gnomon.py

package info (click to toggle)
basemap 2.0.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 213,532 kB
  • sloc: python: 11,826; sh: 45; makefile: 41
file content (12 lines) | stat: -rw-r--r-- 410 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
from mpl_toolkits.basemap import Basemap
import numpy as np
import matplotlib.pyplot as plt
m = Basemap(width=15.e6,height=15.e6,\
            projection='gnom',lat_0=60.,lon_0=-30.)
m.drawmapboundary(fill_color='aqua')
m.drawcoastlines()
m.fillcontinents(color='coral',lake_color='aqua')
m.drawparallels(np.arange(10,90,20))
m.drawmeridians(np.arange(-180,180,30))
plt.title('Gnomonic Projection')
plt.show()