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.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to