SF.net SVN: matplotlib: [5719] trunk/toolkits/basemap/doc/users

2008-07-08 Thread jswhit
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.py2008-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 Communi

SF.net SVN: matplotlib: [5720] branches/v0_91_maint

2008-07-08 Thread mdboom
Revision: 5720
  http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5720&view=rev
Author:   mdboom
Date: 2008-07-08 07:50:20 -0700 (Tue, 08 Jul 2008)

Log Message:
---
Improve mathtext superscript placement.

Modified Paths:
--
branches/v0_91_maint/CHANGELOG
branches/v0_91_maint/lib/matplotlib/mathtext.py

Modified: branches/v0_91_maint/CHANGELOG
===
--- branches/v0_91_maint/CHANGELOG  2008-07-08 12:05:54 UTC (rev 5719)
+++ branches/v0_91_maint/CHANGELOG  2008-07-08 14:50:20 UTC (rev 5720)
@@ -1,3 +1,5 @@
+2008-07-08 Improve mathtext superscript placement - MGD
+
 2008-06-30 Removed Qt4 NavigationToolbar2.destroy -- it appears to
have been unnecessary and caused a bug reported by P.
Raybaut - DSD

Modified: branches/v0_91_maint/lib/matplotlib/mathtext.py
===
--- branches/v0_91_maint/lib/matplotlib/mathtext.py 2008-07-08 12:05:54 UTC 
(rev 5719)
+++ branches/v0_91_maint/lib/matplotlib/mathtext.py 2008-07-08 14:50:20 UTC 
(rev 5720)
@@ -1167,7 +1167,7 @@
 # Percentage of x-height that sub/superscripts drop below the baseline
 SUBDROP = 0.3
 # Percentage of x-height that superscripts drop below the baseline
-SUP1= 0.7
+SUP1= 0.5
 # Percentage of x-height that subscripts drop below the baseline
 SUB1= 0.0
 # Percentage of x-height that superscripts are offset relative to the subscript


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


SF.net SVN: matplotlib: [5721] trunk/matplotlib

2008-07-08 Thread mdboom
Revision: 5721
  http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5721&view=rev
Author:   mdboom
Date: 2008-07-08 07:55:33 -0700 (Tue, 08 Jul 2008)

Log Message:
---
Merged revisions 5685-5720 via svnmerge from 
https://matplotlib.svn.sf.net/svnroot/matplotlib/branches/v0_91_maint


r5700 | dsdale | 2008-06-30 09:24:13 -0400 (Mon, 30 Jun 2008) | 2 lines

removed Qt4's NavigationToolbar2.destroy method


r5706 | mdboom | 2008-07-02 11:36:38 -0400 (Wed, 02 Jul 2008) | 2 lines

Fix bug using autolegend with LineCollection.


r5720 | mdboom | 2008-07-08 10:50:20 -0400 (Tue, 08 Jul 2008) | 2 lines

Improve mathtext superscript placement.



Modified Paths:
--
trunk/matplotlib/CHANGELOG
trunk/matplotlib/lib/matplotlib/mathtext.py

Property Changed:

trunk/matplotlib/


Property changes on: trunk/matplotlib
___
Name: svnmerge-integrated
   - /branches/v0_91_maint:1-5684
   + /branches/v0_91_maint:1-5720

Modified: trunk/matplotlib/CHANGELOG
===
--- trunk/matplotlib/CHANGELOG  2008-07-08 14:50:20 UTC (rev 5720)
+++ trunk/matplotlib/CHANGELOG  2008-07-08 14:55:33 UTC (rev 5721)
@@ -1,3 +1,5 @@
+2008-07-08 Improve mathtext superscript placement - MGD
+
 2008-07-07 Fix custom scales in pcolormesh (thanks Matthew Turk) - MGD
 
 2008-07-03 Implemented findobj method for artist and pyplot - see

Modified: trunk/matplotlib/lib/matplotlib/mathtext.py
===
--- trunk/matplotlib/lib/matplotlib/mathtext.py 2008-07-08 14:50:20 UTC (rev 
5720)
+++ trunk/matplotlib/lib/matplotlib/mathtext.py 2008-07-08 14:55:33 UTC (rev 
5721)
@@ -1169,7 +1169,7 @@
 # Percentage of x-height that sub/superscripts drop below the baseline
 SUBDROP = 0.3
 # Percentage of x-height that superscripts drop below the baseline
-SUP1= 0.7
+SUP1= 0.5
 # Percentage of x-height that subscripts drop below the baseline
 SUB1= 0.0
 # Percentage of x-height that superscripts are offset relative to the subscript


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