8000 #2150 updating comments · matplotlib/matplotlib@c02f511 · GitHub
[go: up one dir, main page]

Skip to content

Commit c02f511

Browse files
committed
#2150 updating comments
1 parent dc64e38 commit c02f511

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/matplotlib/axes/_base.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1545,8 +1545,10 @@ def _update_patch_limits(self, patch):
15451545
# the auto-scaling
15461546

15471547
# cannot check for '==0' since unitized data may not compare to zero
1548+
# issue #2150 - we update the limits if patch has non zero width
1549+
# or height.
15481550
if (isinstance(patch, mpatches.Rectangle) and
1549-
((not patch.get_width()) and (not patch.get_height()))):
1551+
((not patch.get_width()) and (not patch.get_height()))):
15501552
return
15511553
vertices = patch.get_path().vertices
15521554
if vertices.size > 0:

0 commit comments

Comments
 (0)
0