Revision: 5575
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5575&view=rev
Author:   mdboom
Date:     2008-06-17 08:06:29 -0700 (Tue, 17 Jun 2008)

Log Message:
-----------
Hopefully got to_polygons correct now.

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

Modified: trunk/matplotlib/lib/matplotlib/path.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/path.py     2008-06-17 14:59:13 UTC (rev 
5574)
+++ trunk/matplotlib/lib/matplotlib/path.py     2008-06-17 15:06:29 UTC (rev 
5575)
@@ -300,11 +300,13 @@
 
         if transform is not None:
             transform = transform.frozen()
-            if self.codes is None:
+
+        if self.codes is None and width == 0 or height == 0:
+            if transform is None:
+                return [self.vertices]
+            else:
                 return [transform.transform(self.vertices)]
-        else:
-            if self.codes is None:
-                return [self.vertices]
+
         # Deal with the case where there are curves and/or multiple
         # subpaths (using extension code)
         return convert_path_to_polygons(self, transform, width, height)


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

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to