Revision: 5719
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5719&view=rev
Author: jswhit
Date: 2008-07-08 05:05:54 -0700 (Tue, 08 Jul 2008)
Log Message:
-----------
add robinson and sinusoidal examples, fix verbage in azeqd example.
Modified Paths:
--------------
trunk/toolkits/basemap/doc/users/azeqd.rst
trunk/toolkits/basemap/doc/users/mapsetup.rst
Added Paths:
-----------
trunk/toolkits/basemap/doc/users/figures/robin.py
trunk/toolkits/basemap/doc/users/figures/sinu.py
trunk/toolkits/basemap/doc/users/robin.rst
trunk/toolkits/basemap/doc/users/sinu.rst
Modified: trunk/toolkits/basemap/doc/users/azeqd.rst
===================================================================
--- trunk/toolkits/basemap/doc/users/azeqd.rst 2008-07-07 18:34:48 UTC (rev
5718)
+++ trunk/toolkits/basemap/doc/users/azeqd.rst 2008-07-08 12:05:54 UTC (rev
5719)
@@ -5,11 +5,9 @@
The shortest route from the center of the map
to any other point is a straight line in the azimuthal
-equidistant projection. Such lines show the true scale
-on the earth's surface.
-So, for the specified point, this script draws a map that shows
-in which direction to depart for other points on earth and how far
-it will be to reach that destination.
+equidistant projection.
+So, for the specified point, all points that lie on a circle around
+this point are equidistant on the surface of the earth on this projection.
The specified point ``lon_0, lat_0`` shows up as a black dot in the center of
the map.
.. literalinclude:: figures/azeqd.py
Added: trunk/toolkits/basemap/doc/users/figures/robin.py
===================================================================
--- trunk/toolkits/basemap/doc/users/figures/robin.py
(rev 0)
+++ trunk/toolkits/basemap/doc/users/figures/robin.py 2008-07-08 12:05:54 UTC
(rev 5719)
@@ -0,0 +1,14 @@
+from mpl_toolkits.basemap import Basemap
+import numpy as np
+import matplotlib.pyplot as plt
+# lon_0 is central longitude of projection.
+# resolution = 'c' means use crude resolution coastlines.
+m = Basemap(projection='robin',lon_0=0,resolution='c')
+m.drawcoastlines()
+m.fillcontinents(color='coral',lake_color='aqua')
+# draw parallels and meridians.
+m.drawparallels(np.arange(-90.,120.,30.))
+m.drawmeridians(np.arange(0.,420.,60.))
+m.drawmapboundary(fill_color='aqua')
+plt.title("Robinson Projection")
+plt.savefig('robin.png')
Added: trunk/toolkits/basemap/doc/users/figures/sinu.py
===================================================================
--- trunk/toolkits/basemap/doc/users/figures/sinu.py
(rev 0)
+++ trunk/toolkits/basemap/doc/users/figures/sinu.py 2008-07-08 12:05:54 UTC
(rev 5719)
@@ -0,0 +1,14 @@
+from mpl_toolkits.basemap import Basemap
+import numpy as np
+import matplotlib.pyplot as plt
+# lon_0 is central longitude of projection.
+# resolution = 'c' means use crude resolution coastlines.
+m = Basemap(projection='sinu',lon_0=0,resolution='c')
+m.drawcoastlines()
+m.fillcontinents(color='coral',lake_color='aqua')
+# draw parallels and meridians.
+m.drawparallels(np.arange(-90.,120.,30.))
+m.drawmeridians(np.arange(0.,420.,60.))
+m.drawmapboundary(fill_color='aqua')
+plt.title("Sinusoidal Projection")
+plt.savefig('sinu.png')
Modified: trunk/toolkits/basemap/doc/users/mapsetup.rst
===================================================================
--- trunk/toolkits/basemap/doc/users/mapsetup.rst 2008-07-07 18:34:48 UTC
(rev 5718)
+++ trunk/toolkits/basemap/doc/users/mapsetup.rst 2008-07-08 12:05:54 UTC
(rev 5719)
@@ -32,3 +32,5 @@
gnomon.rst
ortho.rst
moll.rst
+ robin.rst
+ sinu.rst
Added: trunk/toolkits/basemap/doc/users/robin.rst
===================================================================
--- trunk/toolkits/basemap/doc/users/robin.rst (rev 0)
+++ trunk/toolkits/basemap/doc/users/robin.rst 2008-07-08 12:05:54 UTC (rev
5719)
@@ -0,0 +1,10 @@
+.. _robin:
+
+Robinson Projection
+===================
+
+A global projection once used by the National Geographic Society for world
maps.
+
+.. literalinclude:: figures/robin.py
+
+.. image:: figures/robin.png
Added: trunk/toolkits/basemap/doc/users/sinu.rst
===================================================================
--- trunk/toolkits/basemap/doc/users/sinu.rst (rev 0)
+++ trunk/toolkits/basemap/doc/users/sinu.rst 2008-07-08 12:05:54 UTC (rev
5719)
@@ -0,0 +1,11 @@
+.. _sinu:
+
+Sinusoidal Projection
+=====================
+
+A global equal-area projection where the length of each parallel is
+equal to the cosine of the latitude.
+
+.. literalinclude:: figures/sinu.py
+
+.. image:: figures/sinu.png
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins