Skip to content

Commit ac2db8e

Browse files
committed
matplotlib#2150 work in progress. Patch limits get updated even if width or height of a patch might be 0 (but not if both width and height are 0).
1 parent 97eb5c7 commit ac2db8e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2014-03-24 Changed the behaviour of axes to not ignore leading or trailing
2+
patches of height 0 while calculating the x and y axis limits.
3+
14
2014-03-17 Bug was fixed in append_axes from the AxesDivider class would not
25
append axes in the right location with respect to the reference
36
locator axes

lib/matplotlib/axes/_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1546,7 +1546,7 @@ def _update_patch_limits(self, patch):
15461546

15471547
# cannot check for '==0' since unitized data may not compare to zero
15481548
if (isinstance(patch, mpatches.Rectangle) and
1549-
((not patch.get_width()) or (not patch.get_height()))):
1549+
((not patch.get_width()) and (not patch.get_height()))):
15501550
return
15511551
vertices = patch.get_path().vertices
15521552
if vertices.size > 0:

0 commit comments

Comments
 (0)