Revision: 7190
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7190&view=rev
Author:   leejjoon
Date:     2009-06-07 13:08:34 +0000 (Sun, 07 Jun 2009)

Log Message:
-----------
fix typo in axes_grid/clip_path.py

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

Modified: trunk/matplotlib/lib/mpl_toolkits/axes_grid/clip_path.py
===================================================================
--- trunk/matplotlib/lib/mpl_toolkits/axes_grid/clip_path.py    2009-06-06 
21:35:36 UTC (rev 7189)
+++ trunk/matplotlib/lib/mpl_toolkits/axes_grid/clip_path.py    2009-06-07 
13:08:34 UTC (rev 7190)
@@ -4,6 +4,7 @@
 
 def atan2(dy, dx):
     if dx == 0 and dx == 0:
+        print "warning"
         return 0
     else:
         return math.atan2(dy, dx)
@@ -45,7 +46,7 @@
                 segx, segy = [], []
 
                 if dx == 0. and dy == 0:
-                    dx = x[+1] - x[i]
+                    dx = x[i+1] - x[i]
                     dy = y[i+1] - y[i]
 
                 a = degrees(atan2(dy, dx))
@@ -59,7 +60,7 @@
                 ns = i+1
 
                 if dx == 0. and dy == 0:
-                    dx = x[+1] - x[i]
+                    dx = x[i+1] - x[i]
                     dy = y[i+1] - y[i]
 
                 a = degrees(atan2(dy, dx))


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

------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to