Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions lib/matplotlib/backends/backend_qtagg.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
9 changes: 0 additions & 9 deletions lib/matplotlib/backends/backend_wx.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down