|
From: Jeff W. <js...@fa...> - 2011-01-03 02:23:33
|
On 1/2/11 1:01 PM, Linuxer Wang wrote: > This may be a question for Jeffrey Whitaker but welcome anyone's help. > > I used to use the m_map tool for matlab > (http://www.eos.ubc.ca/~rich/map.html > <http://www.eos.ubc.ca/%7Erich/map.html>). Does anybody know how to > draw the same maps in matplotlib (BaseMap)? Specifically, how to draw > axes in such figures: > http://www.eos.ubc.ca/~rich/private/extblueocean.gif > <http://www.eos.ubc.ca/%7Erich/private/extblueocean.gif> or > http://www.eos.ubc.ca/~rich/private/exmiller.gif > <http://www.eos.ubc.ca/%7Erich/private/exmiller.gif> ? > > Thanks a lot. Can you be more specific about what you need help with? Is it drawing the map itself, or drawing the lines on the map? examples/nytolondon.py shows how to draw great circles, which is similar to the extblueocean.gif example. If you are asking how to draw that black and white border around the map, that is not supported. However, it is easy to draw labelled meridians and parallels (with the drawparallels and drawmeridians class methods). Docs are at http://matplotlib.sourceforge.net/basemap/doc/html/api/index.html, and there are lots of examples in the 'examples' directory of the source distribution. HTH, -Jeff |