8000 Make sure that autoscale respect tight closes #6968 · matplotlib/matplotlib@ee2c1b4 · GitHub
[go: up one dir, main page]

Skip to content

Commit ee2c1b4

Browse files
committed
Make sure that autoscale respect tight closes #6968
1 parent 8888e0b commit ee2c1b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/axes/_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2198,7 +2198,7 @@ def autoscale_view(self, tight=None, scalex=True, scaley=True):
21982198
else:
21992199
_tight = self._tight = bool(tight)
22002200

2201-
if self._xmargin or self._ymargin:
2201+
if (self._xmargin or self._ymargin) and not _tight:
22022202
margins = {
22032203
'top': True,
22042204
'bottom': True,

0 commit comments

Comments
 (0)
0