Revision: 6898
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6898&view=rev
Author:   jrevans
Date:     2009-02-09 23:05:22 +0000 (Mon, 09 Feb 2009)

Log Message:
-----------
Fixed the bar plot code to use the proper unit conversion interface code.

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

Modified: trunk/matplotlib/lib/matplotlib/axes.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/axes.py     2009-02-09 20:06:49 UTC (rev 
6897)
+++ trunk/matplotlib/lib/matplotlib/axes.py     2009-02-09 23:05:22 UTC (rev 
6898)
@@ -4094,18 +4094,12 @@
         # lets do some conversions now since some types cannot be
         # subtracted uniformly
         if self.xaxis is not None:
-            xconv = self.xaxis.converter
-            if xconv is not None:
-                units = self.xaxis.get_units()
-                left = xconv.convert( left, units )
-                width = xconv.convert( width, units )
+            left = self.convert_xunits( left )
+            width = self.convert_xunits( width )
 
         if self.yaxis is not None:
-            yconv = self.yaxis.converter
-            if yconv is not None :
-                units = self.yaxis.get_units()
-                bottom = yconv.convert( bottom, units )
-                height = yconv.convert( height, units )
+            bottom = self.convert_yunits( bottom )
+            height = self.convert_yunits( height )
 
         if align == 'edge':
             pass


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

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to