Revision: 6781
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6781&view=rev
Author:   efiring
Date:     2009-01-13 02:40:47 +0000 (Tue, 13 Jan 2009)

Log Message:
-----------
Fix units handling in scatter

Modified Paths:
--------------
    branches/v0_98_5_maint/lib/matplotlib/axes.py
    branches/v0_98_5_maint/lib/matplotlib/collections.py

Modified: branches/v0_98_5_maint/lib/matplotlib/axes.py
===================================================================
--- branches/v0_98_5_maint/lib/matplotlib/axes.py       2009-01-12 12:59:13 UTC 
(rev 6780)
+++ branches/v0_98_5_maint/lib/matplotlib/axes.py       2009-01-13 02:40:47 UTC 
(rev 6781)
@@ -5021,6 +5021,8 @@
             }
 
         self._process_unit_info(xdata=x, ydata=y, kwargs=kwargs)
+        x = self.convert_xunits(x)
+        y = self.convert_yunits(y)
 
         x, y, s, c = cbook.delete_masked_points(x, y, s, c)
 

Modified: branches/v0_98_5_maint/lib/matplotlib/collections.py
===================================================================
--- branches/v0_98_5_maint/lib/matplotlib/collections.py        2009-01-12 
12:59:13 UTC (rev 6780)
+++ branches/v0_98_5_maint/lib/matplotlib/collections.py        2009-01-13 
02:40:47 UTC (rev 6781)
@@ -174,8 +174,8 @@
                 ys = self.convert_yunits(ys)
                 paths.append(mpath.Path(zip(xs, ys), path.codes))
             if len(self._offsets):
-                xs = self.convert_xunits(self._offsets[:0])
-                ys = self.convert_yunits(self._offsets[:1])
+                xs = self.convert_xunits(self._offsets[:,0])
+                ys = self.convert_yunits(self._offsets[:,1])
                 offsets = zip(xs, ys)
 
         offsets = np.asarray(offsets, np.float_)


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

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to