Revision: 3952
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=3952&view=rev
Author:   jdh2358
Date:     2007-10-15 14:22:03 -0700 (Mon, 15 Oct 2007)

Log Message:
-----------
fixed a unit problem with annotations

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

Modified: trunk/matplotlib/lib/matplotlib/text.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/text.py     2007-10-15 21:08:35 UTC (rev 
3951)
+++ trunk/matplotlib/lib/matplotlib/text.py     2007-10-15 21:22:03 UTC (rev 
3952)
@@ -1077,6 +1077,8 @@
     def _get_xy(self, x, y, s):
         if s=='data':
             trans = self.axes.transData
+            x = float(self.convert_xunits(x))
+            y = float(self.convert_yunits(y))
             return trans.xy_tup((x,y))
         elif s=='polar':
             theta, r = x, y


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: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to