FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Remove print_figure overrides in backend subclasses by QuLogic · Pull Request #25713 · matplotlib/matplotlib · GitHub

Repository navigation

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

Filter by extension

Filter by extension .py  (2) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
4 changes: 0 additions & 4 deletions lib/matplotlib/backends/backend_qtagg.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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

Back | FazBrowse Home | New Git URL