Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc64e38 commit c02f511Copy full SHA for c02f511
1 file changed
lib/matplotlib/axes/_base.py
@@ -1545,8 +1545,10 @@ def _update_patch_limits(self, patch):
1545
# the auto-scaling
1546
1547
# 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.
1550
if (isinstance(patch, mpatches.Rectangle) and
- ((not patch.get_width()) and (not patch.get_height()))):
1551
+ ((not patch.get_width()) and (not patch.get_height()))):
1552
return
1553
vertices = patch.get_path().vertices
1554
if vertices.size > 0:
0 commit comments