Skip to content

Commit b699b87

Browse files
committed
Remove outdate comment about canvases with no manager attribute.
They don't occur anymore since 3ccc17b.
1 parent 85f6908 commit b699b87

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)