8000 Merge pull request #18628 from anntzer/managerless · matplotlib/matplotlib@ae47ad2 · GitHub
[go: up one dir, main page]

Skip to content

Commit ae47ad2

Browse files
authored
Merge pull request #18628 from anntzer/managerless
MNT: Remove outdate code comment about canvases with no manager attribute.
2 parents 7303d81 + b699b87 commit ae47ad2

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

lib/matplotlib/backend_bases.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2178,9 +2178,6 @@ def print_figure(
21782178
dpi = getattr(self.figure, '_original_dpi', self.figure.dpi)
21792179

21802180
# Remove the figure manager, if any, to avoid resizing the GUI widget.
2181-
# Some code (e.g. Figure.show) differentiates between having *no*
2182-
# manager and a *None* manager, which should be fixed at some point,
2183-
# but this should be fine.
21842181
with cbook._setattr_cm(self, manager=None), \
21852182
cbook._setattr_cm(self.figure, dpi=dpi), \
21862183
cbook._setattr_cm(canvas, _is_saving=True):

0 commit comments

Comments
 (0)
0