diff --git a/lib/matplotlib/backends/backend_qtagg.py b/lib/matplotlib/backends/backend_qtagg.py index f64264d712f7..f89de8efba97 100644 --- a/lib/matplotlib/backends/backend_qtagg.py +++ b/lib/matplotlib/backends/backend_qtagg.py @@ -71,10 +71,6 @@ def paintEvent(self, event): finally: painter.end() - def print_figure(self, *args, **kwargs): - super().print_figure(*args, **kwargs) - self.draw() - @_BackendQT.export class _BackendQTAgg(_BackendQT): diff --git a/lib/matplotlib/backends/backend_wx.py b/lib/matplotlib/backends/backend_wx.py index 70f0c0fff515..5d7349b8759c 100644 --- a/lib/matplotlib/backends/backend_wx.py +++ b/lib/matplotlib/backends/backend_wx.py @@ -614,15 +614,6 @@ def gui_repaint(self, drawDC=None): 'xpm': 'X pixmap', } - def print_figure(self, filename, *args, **kwargs): - # docstring inherited - super().print_figure(filename, *args, **kwargs) - # Restore the current view; this is needed because the artist contains - # methods rely on particular attributes of the rendered figure for - # determining things like bounding boxes. - if self._isDrawn: - self.draw() - def _on_paint(self, event): """Called when wxPaintEvt is generated.""" _log.debug("%s - _on_paint()", type(self))