Revision: 8170
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8170&view=rev
Author:   jdh2358
Date:     2010-03-02 13:12:16 +0000 (Tue, 02 Mar 2010)

Log Message:
-----------
fixed invalidx bug in Line2D get_xydata

Modified Paths:
--------------
    trunk/matplotlib/lib/matplotlib/lines.py

Modified: trunk/matplotlib/lib/matplotlib/lines.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/lines.py    2010-03-02 02:42:58 UTC (rev 
8169)
+++ trunk/matplotlib/lib/matplotlib/lines.py    2010-03-02 13:12:16 UTC (rev 
8170)
@@ -659,7 +659,7 @@
         """
         Return the *xy* data as a Nx2 numpy array.
         """
-        if self._invalidy or self.invalidx:
+        if self._invalidy or self._invalidx:
             self.recache()
         return self._xy
 
@@ -831,7 +831,7 @@
 
     def set_markerfacecolor(self, fc):
         """
-        Set the marker face color. 
+        Set the marker face color.
 
         ACCEPTS: any matplotlib color
         """
@@ -842,7 +842,7 @@
 
     def set_markerfacecoloralt(self, fc):
         """
-        Set the alternate marker face color. 
+        Set the alternate marker face color.
 
         ACCEPTS: any matplotlib color
         """
@@ -1020,7 +1020,7 @@
                                   path, path_trans, rgbFace)
             transform = transform.rotate_deg(180.)
             renderer.draw_markers(gc, righthalf, transform,
-                                  path, path_trans, rgbFace_alt)            
+                                  path, path_trans, rgbFace_alt)
 
 
     _draw_pixel_transform = Affine2D().translate(-0.5, -0.5)
@@ -1041,7 +1041,7 @@
         rgbFace = self._get_rgb_face()
         fs = self.get_fillstyle()
         if fs=='full':
-            renderer.draw_markers(gc, Path.unit_circle(), transform, 
+            renderer.draw_markers(gc, Path.unit_circle(), transform,
                                   path, path_trans, rgbFace)
         else:
             rgbFace_alt = self._get_rgb_face(alt=True)
@@ -1118,8 +1118,8 @@
                                   path, path_trans, rgbFace)
             renderer.draw_markers(gc, mpath_alt, transform,
                                   path, path_trans, rgbFace_alt)
-        
 
+
     def _draw_triangle_up(self, renderer, gc, path, path_trans):
         self._draw_triangle(renderer, gc, path, path_trans, 'up')
 
@@ -1190,8 +1190,8 @@
                                   path, path_trans, rgbFace)
             renderer.draw_markers(gc, left, transform,
                                   path, path_trans, rgbFace_alt)
-            
 
+
     def _draw_thin_diamond(self, renderer, gc, path, path_trans):
         gc.set_snap(renderer.points_to_pixels(self._markersize) >= 3.0)
         offset = renderer.points_to_pixels(self._markersize)
@@ -1238,7 +1238,7 @@
                                   path, path_trans, rgbFace)
         else:
             verts = polypath.vertices
-            
+
             y = (1+np.sqrt(5))/4.
             top = Path([verts[0], verts[1], verts[4], verts[0]])
             bottom = Path([verts[1], verts[2], verts[3], verts[4], verts[1]])
@@ -1299,7 +1299,7 @@
 
 
     def _draw_hexagon1(self, renderer, gc, path, path_trans):
-        gc.set_snap(renderer.points_to_pixels(self._markersize) >= 5.0)        
+        gc.set_snap(renderer.points_to_pixels(self._markersize) >= 5.0)
         offset = 0.5 * renderer.points_to_pixels(self._markersize)
         transform = Affine2D().scale(offset)
 
@@ -1338,7 +1338,7 @@
 
 
     def _draw_hexagon2(self, renderer, gc, path, path_trans):
-        gc.set_snap(renderer.points_to_pixels(self._markersize) >= 5.0)        
+        gc.set_snap(renderer.points_to_pixels(self._markersize) >= 5.0)
         offset = 0.5 * renderer.points_to_pixels(self._markersize)
         transform = Affine2D().scale(offset).rotate_deg(30)
 


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

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Matplotlib-checkins mailing list
Matplotlib-checkins@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to