From 078e9f09ffdef06abbbcfd69be8c07a579932f62 Mon Sep 17 00:00:00 2001 From: Antony Lee Date: Tue, 10 Oct 2017 10:58:55 -0700 Subject: [PATCH 1/2] Add missing staticmethod deco to osx backend. --- lib/matplotlib/backends/backend_macosx.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/matplotlib/backends/backend_macosx.py b/lib/matplotlib/backends/backend_macosx.py index 073debd249df..802f6ecec5e0 100644 --- a/lib/matplotlib/backends/backend_macosx.py +++ b/lib/matplotlib/backends/backend_macosx.py @@ -216,6 +216,7 @@ class _BackendMac(_Backend): FigureCanvas = FigureCanvasMac FigureManager = FigureManagerMac + @staticmethod def trigger_manager_draw(manager): # For performance reasons, we don't want to redraw the figure after # each draw command. Instead, we mark the figure as invalid, so that it From f9077a46fa67aea48edc4035b7dcf058e1403d00 Mon Sep 17 00:00:00 2001 From: Antony Lee Date: Thu, 12 Oct 2017 11:08:46 -0700 Subject: [PATCH 2/2] Fix missing qualified name in webagg. --- lib/matplotlib/backends/backend_webagg.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/matplotlib/backends/backend_webagg.py b/lib/matplotlib/backends/backend_webagg.py index 33353dbda68f..6d471977ba81 100644 --- a/lib/matplotlib/backends/backend_webagg.py +++ b/lib/matplotlib/backends/backend_webagg.py @@ -108,8 +108,7 @@ def get(self): "all_figures.html", prefix=self.url_prefix, ws_uri=ws_uri, - figures=sorted( - list(Gcf.figs.items()), key=lambda item: item[0]), + figures=sorted(Gcf.figs.items()), toolitems=core.NavigationToolbar2WebAgg.toolitems) class MplJs(tornado.web.RequestHandler): @@ -326,7 +325,7 @@ def ipython_inline_display(figure): @_Backend.export class _BackendWebAgg(_Backend): FigureCanvas = FigureCanvasWebAgg - FigureManager = FigureManagerWebAgg + FigureManager = core.FigureManagerWebAgg @staticmethod def trigger_manager_draw(manager):