Revision: 8865
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8865&view=rev
Author: jswhit
Date: 2010-12-30 12:53:23 +0000 (Thu, 30 Dec 2010)
Log Message:
-----------
add info for Hammer projection.
Modified Paths:
--------------
trunk/toolkits/basemap/doc/users/graticule.rst
trunk/toolkits/basemap/doc/users/mapsetup.rst
Added Paths:
-----------
trunk/toolkits/basemap/doc/users/figures/hammer.py
trunk/toolkits/basemap/doc/users/hammer.rst
Added: trunk/toolkits/basemap/doc/users/figures/hammer.py
===================================================================
--- trunk/toolkits/basemap/doc/users/figures/hammer.py
(rev 0)
+++ trunk/toolkits/basemap/doc/users/figures/hammer.py 2010-12-30 12:53:23 UTC
(rev 8865)
@@ -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='hammer',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("Hammer Projection")
+plt.savefig('hammer.png')
Modified: trunk/toolkits/basemap/doc/users/graticule.rst
===================================================================
--- trunk/toolkits/basemap/doc/users/graticule.rst 2010-12-30 12:49:13 UTC
(rev 8864)
+++ trunk/toolkits/basemap/doc/users/graticule.rst 2010-12-30 12:53:23 UTC
(rev 8865)
@@ -14,7 +14,8 @@
``vandg`` (van der Grinten) or ``nsper`` (near-sided perspective),
and meridians cannot be labelled on maps with
``proj`` set to ``robin`` (robinson), ``mbtfpq``
-(McBryde-Thomas Flat Polar Quartic), ``moll`` (mollweide) or ``sinu``
+(McBryde-Thomas Flat Polar Quartic), ``moll`` (Mollweide),
+``hammer`` (Hammer), or ``sinu``
(sinusoidal). This is because the lines can be very close
together where they intersect the boundary on these maps, so that
they really need to be labelled manually on the interior of the plot.
Added: trunk/toolkits/basemap/doc/users/hammer.rst
===================================================================
--- trunk/toolkits/basemap/doc/users/hammer.rst (rev 0)
+++ trunk/toolkits/basemap/doc/users/hammer.rst 2010-12-30 12:53:23 UTC (rev
8865)
@@ -0,0 +1,10 @@
+.. _hammer:
+
+Hammer Projection
+====================
+
+The hammer projection is a global, elliptical, equal-area projection.
+
+.. literalinclude:: figures/hammer.py
+
+.. image:: figures/hammer.png
Modified: trunk/toolkits/basemap/doc/users/mapsetup.rst
===================================================================
--- trunk/toolkits/basemap/doc/users/mapsetup.rst 2010-12-30 12:49:13 UTC
(rev 8864)
+++ trunk/toolkits/basemap/doc/users/mapsetup.rst 2010-12-30 12:53:23 UTC
(rev 8865)
@@ -6,7 +6,7 @@
In order to represent the curved surface of the earth on a two-dimensional
map, a map projection is needed. Since this cannot be done without
distortion, there are many map projections, each with it's own advantages
-and disadvantages. Basemap provides 23 different map projections.
+and disadvantages. Basemap provides 24 different map projections.
Some are global, some can only represent a portion of the globe. When
a :class:`~mpl_toolkits.basemap.Basemap` class instance is
created, the desired map projection must
@@ -39,6 +39,7 @@
geos.rst
nsper.rst
moll.rst
+ hammer.rst
robin.rst
sinu.rst
cyl.rst
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and,
should the need arise, upgrade to a full multi-node Oracle RAC database
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins