Skip to content

Commit 899f11d

Browse files
committed
Merge branch 'issue_2150'
Conflicts: CHANGELOG
2 parents 53342c6 + c02f511 commit 899f11d

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

CHANGELOG

+5
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@
2929
2014-03-27 Added tests for pie ccw parameter. Removed pdf and svg images
3030
from tests for pie linewidth parameter.
3131

32+
2014-03-24 Changed the behaviour of axes to not ignore leading or trailing
33+
patches of height 0 (or width 0) while calculating the x and y
34+
axis limits. Patches having both height == 0 and width == 0 are
35+
ignored.
36+
3237
2014-03-24 Added bool kwarg (manage_xticks) to boxplot to enable/disable
3338
the managemnet of the xlimits and ticks when making a boxplot.
3439
Default in True which maintains current behavior by default.

lib/matplotlib/axes/_base.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -1556,8 +1556,10 @@ def _update_patch_limits(self, patch):
15561556
# the auto-scaling
15571557

15581558
# cannot check for '==0' since unitized data may not compare to zero
1559+
# issue #2150 - we update the limits if patch has non zero width
1560+
# or height.
15591561
if (isinstance(patch, mpatches.Rectangle) and
1560-
((not patch.get_width()) or (not patch.get_height()))):
1562+
((not patch.get_width()) and (not patch.get_height()))):
15611563
return
15621564
vertices = patch.get_path().vertices
15631565
if vertices.size > 0:

0 commit comments

Comments
 (0)