From 183dbd1f2fc96e8a1634ac913ab4aeec8f2855ea Mon Sep 17 00:00:00 2001 From: Antony Lee Date: Fri, 17 Feb 2023 15:47:22 +0100 Subject: [PATCH] Cleanup wx docstrings. - The "origin" keyword (for wx) has been deprecated in 591f92a and since then removed. - The canvas classes docstrings are inherited, but we don't even bother marking them as being inherited for other backends. --- lib/matplotlib/backends/backend_wx.py | 2 -- lib/matplotlib/backends/backend_wxagg.py | 10 ---------- lib/matplotlib/backends/backend_wxcairo.py | 9 --------- 3 files changed, 21 deletions(-) diff --git a/lib/matplotlib/backends/backend_wx.py b/lib/matplotlib/backends/backend_wx.py index d4eef8e22705..1ea7b742ba30 100644 --- a/lib/matplotlib/backends/backend_wx.py +++ b/lib/matplotlib/backends/backend_wx.py @@ -595,8 +595,6 @@ def gui_repaint(self, drawDC=None): """ Update the displayed image on the GUI canvas, using the supplied wx.PaintDC device context. - - The 'WXAgg' backend sets origin accordingly. """ _log.debug("%s - gui_repaint()", type(self)) # The "if self" check avoids a "wrapped C/C++ object has been deleted" diff --git a/lib/matplotlib/backends/backend_wxagg.py b/lib/matplotlib/backends/backend_wxagg.py index ca7f91583766..e92a4f81b19d 100644 --- a/lib/matplotlib/backends/backend_wxagg.py +++ b/lib/matplotlib/backends/backend_wxagg.py @@ -15,16 +15,6 @@ def get_canvas(self, fig): class FigureCanvasWxAgg(FigureCanvasAgg, _FigureCanvasWxBase): - """ - The FigureCanvas contains the figure and does event handling. - - In the wxPython backend, it is derived from wxPanel, and (usually) - lives inside a frame instantiated by a FigureManagerWx. The parent - window probably implements a wxSizer to control the displayed - control size - but we give a hint as to our preferred minimum - size. - """ - def draw(self, drawDC=None): """ Render the figure using agg. diff --git a/lib/matplotlib/backends/backend_wxcairo.py b/lib/matplotlib/backends/backend_wxcairo.py index 0416a187d091..5af9c195f392 100644 --- a/lib/matplotlib/backends/backend_wxcairo.py +++ b/lib/matplotlib/backends/backend_wxcairo.py @@ -15,15 +15,6 @@ def get_canvas(self, fig): class FigureCanvasWxCairo(FigureCanvasCairo, _FigureCanvasWxBase): - """ - The FigureCanvas contains the figure and does event handling. - - In the wxPython backend, it is derived from wxPanel, and (usually) lives - inside a frame instantiated by a FigureManagerWx. The parent window - probably implements a wxSizer to control the displayed control size - but - we give a hint as to our preferred minimum size. - """ - def draw(self, drawDC=None): size = self.figure.bbox.size.astype(int) surface = cairo.ImageSurface(cairo.FORMAT_ARGB32, *size)