From: <jd...@us...> - 2008-05-28 17:00:44
|
Revision: 5291 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5291&view=rev Author: jdh2358 Date: 2008-05-28 10:00:15 -0700 (Wed, 28 May 2008) Log Message: ----------- fixed patch rect area zero bug -- finally! Modified Paths: -------------- trunk/matplotlib/lib/matplotlib/axes.py Modified: trunk/matplotlib/lib/matplotlib/axes.py =================================================================== --- trunk/matplotlib/lib/matplotlib/axes.py 2008-05-28 16:51:39 UTC (rev 5290) +++ trunk/matplotlib/lib/matplotlib/axes.py 2008-05-28 17:00:15 UTC (rev 5291) @@ -1234,7 +1234,7 @@ # the bins, counts and patches lined up, but it throws off log # scaling. We'll ignore rects with zero height or width in # the auto-scaling - if isinstance(p, mpatches.Rectangle) and p.get_width()==0. and p.get_height()==0.: + if isinstance(p, mpatches.Rectangle) and (p.get_width()==0. or p.get_height()==0.): return vertices = p.get_patch_transform().transform(p.get_path().vertices) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |