Size: 494
Editor: anonymous
|
Size: 519
Editor: anonymous
|
Deletions are marked like this. |
Additions are marked like this. |
Line 13: |
Line 13: |
|
{{attachment:Map1.png}} |
Line 14: |
Line 15: |
{{{!#python |
{{{#!python |
Visualisation
Basemap
1 from pylab import *
2 from mpl_toolkits.basemap import Basemap
3
4 m = Basemap(projection='ortho',lon_0=10.0,lat_0=45.0,resolution='l')
5 m.bluemarble()
6
7 lon,lat=10.0,53.5
8
9 x,y=m(lon,lat)
10 m.plot(x,y,'r.')
11
12 show()
13 savefig('Map1.png',dpi=75)
LehreWiki: OpenSource2010/Lesson6 (last edited 2010-11-22 12:55:36 by anonymous)