diff --git a/CHANGELOG b/CHANGELOG index 8d1418215c30..51022a281c6e 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,8 @@ +2014-03-30 Changed the behaviour of axes to not ignore leading or trailing + patches of height 0 (or width 0) while calculating the x and y + axis limits. Patches having both height == 0 and width == 0 are + ignored. + 2014-03-27 Added tests for pie ccw parameter. Removed pdf and svg images from tests for pie linewidth parameter. diff --git a/lib/matplotlib/axes/_base.py b/lib/matplotlib/axes/_base.py index 998806e321d8..5afcc8316dd2 100644 --- a/lib/matplotlib/axes/_base.py +++ b/lib/matplotlib/axes/_base.py @@ -1545,8 +1545,10 @@ def _update_patch_limits(self, patch): # the auto-scaling # cannot check for '==0' since unitized data may not compare to zero + # issue #2150 - we update the limits if patch has non zero width + # or height. if (isinstance(patch, mpatches.Rectangle) and - ((not patch.get_width()) or (not patch.get_height()))): + ((not patch.get_width()) and (not patch.get_height()))): return vertices = patch.get_path().vertices if vertices.size > 0: