Revision: 7065
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7065&view=rev
Author:   efiring
Date:     2009-04-24 22:44:34 +0000 (Fri, 24 Apr 2009)

Log Message:
-----------
Fix for python 2.6: "as" is now reserved, don't use as a variable name.

Modified Paths:
--------------
    trunk/matplotlib/lib/mpl_toolkits/axes_grid/axes_divider.py

Modified: trunk/matplotlib/lib/mpl_toolkits/axes_grid/axes_divider.py
===================================================================
--- trunk/matplotlib/lib/mpl_toolkits/axes_grid/axes_divider.py 2009-04-24 
17:08:50 UTC (rev 7064)
+++ trunk/matplotlib/lib/mpl_toolkits/axes_grid/axes_divider.py 2009-04-24 
22:44:34 UTC (rev 7065)
@@ -32,7 +32,7 @@
     axes.
     """
 
-    
+
     def __init__(self, fig, pos, horizontal, vertical, aspect=None, 
anchor="C"):
         """
         :param fig: matplotlib figure
@@ -48,9 +48,9 @@
                     so that the relative part of the horizontal and
                     vertical scales have same scale.
         :param anchor: Detrmine how the reduced rectangle is placed
-                       when aspect is True, 
+                       when aspect is True,
         """
-        
+
         self._fig = fig
         self._pos = pos
         self._horizontal = horizontal
@@ -67,9 +67,9 @@
         rs_sum, as_sum = 0., 0.
 
         for s in l:
-            rs, as = s.get_size(renderer)
-            rs_sum += rs
-            as_sum += as
+            _rs, _as = s.get_size(renderer)
+            rs_sum += _rs
+            as_sum += _as
 
         if rs_sum != 0.:
             k = (total_size - as_sum) / rs_sum
@@ -84,8 +84,8 @@
         offsets = [0.]
 
         for s in l:
-            rs, as = s.get_size(renderer)
-            offsets.append(offsets[-1] + rs*k + as)
+            _rs, _as = s.get_size(renderer)
+            offsets.append(offsets[-1] + _rs*k + _as)
 
         return offsets
 
@@ -93,7 +93,7 @@
     def set_position(self, pos):
         """
         set the position of the rectangle.
-        
+
         :param pos: position (tuple of 4 floats) of the rectangle that
                     will be divided.
         """
@@ -220,7 +220,7 @@
         """
         returns a new locator
         (:class:`mpl_toolkits.axes_grid.axes_divider.AxesLocator`) for
-        specified cell. 
+        specified cell.
 
         :param nx, nx1: Integers specifying the column-position of the
           cell. When nx1 is None, a single nx-th column is


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Matplotlib-checkins mailing list
Matplotlib-checkins@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to