Differences between revisions 1 and 4 (spanning 3 versions)
Revision 1 as of 2009-11-23 11:59:20
Size: 494
Editor: anonymous
Comment:
Revision 4 as of 2009-11-23 12:00:22
Size: 519
Editor: anonymous
Comment:
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

Map1.png

   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 # Hamburg
   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)