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.py
Modified: 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()))):
return
vertices = patch.get_path().vertices
if vertices.size > 0:
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins