From: <jr...@us...> - 2007-10-05 17:01:39
|
Revision: 3921 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=3921&view=rev Author: jrevans Date: 2007-10-05 10:01:36 -0700 (Fri, 05 Oct 2007) Log Message: ----------- Fixed an error in calculating the mid-point of a bar since the values are now lists and not arrays, they need to be iterated to perform the arithmetic. Modified Paths: -------------- trunk/matplotlib/lib/matplotlib/axes.py Modified: trunk/matplotlib/lib/matplotlib/axes.py =================================================================== --- trunk/matplotlib/lib/matplotlib/axes.py 2007-10-05 16:29:17 UTC (rev 3920) +++ trunk/matplotlib/lib/matplotlib/axes.py 2007-10-05 17:01:36 UTC (rev 3921) @@ -3262,9 +3262,9 @@ pass elif align == 'center': if orientation == 'vertical': - left = left - width/2. + left = [left[i] - width[i]/2. for i in range(len(left))] elif orientation == 'horizontal': - bottom = bottom-height/2. + bottom = [bottom[i] - height[i]/2. for i in range(len(bottom))] else: raise ValueError, 'invalid alignment: %s' % align This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |