jrevans@...189... wrote:
Revision: 7824
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7824&view=rev
Author: jrevans
Date: 2009-09-24 20:47:11 +0000 (Thu, 24 Sep 2009)Log Message:
-----------
Fixed a comparison in update_patch_limits that compared data with being equall to zero. This will fail with unitized data.Modified Paths:
--------------
trunk/matplotlib/lib/matplotlib/axes.pyModified: trunk/matplotlib/lib/matplotlib/axes.py
--- trunk/matplotlib/lib/matplotlib/axes.py 2009-09-24 17:05:51 UTC (rev 7823)
+++ trunk/matplotlib/lib/matplotlib/axes.py 2009-09-24 20:47:11 UTC (rev 7824)
@@ -1444,8 +1444,9 @@
# scaling. We'll ignore rects with zero height or width in
# the auto-scaling
+ # cannot check for '==0' since unitized data may not compare to zero
if (isinstance(patch, mpatches.Rectangle) and
- (patch.get_width()==0 or patch.get_height()==0)):
+ ((not patch.get_width()) or (notpatch.get_height()))):
^
typo
···
return
vertices = patch.get_path().vertices
if vertices.size > 0: