|
From: <jr...@us...> - 2009-02-09 23:05:27
|
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.
|