Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1ec25a8

Browse filesBrowse files
authored
Merge pull request #9347 from anntzer/fix-osx-backend
Fix backend refactor
2 parents e94ee0b + f9077a4 commit 1ec25a8
Copy full SHA for 1ec25a8

File tree

Expand file treeCollapse file tree

2 files changed

+3
-3
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

2 files changed

+3
-3
lines changed
Open diff view settings
Collapse file

‎lib/matplotlib/backends/backend_macosx.py‎

Copy file name to clipboardExpand all lines: lib/matplotlib/backends/backend_macosx.py
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@ class _BackendMac(_Backend):
216216
FigureCanvas = FigureCanvasMac
217217
FigureManager = FigureManagerMac
218218

219+
@staticmethod
219220
def trigger_manager_draw(manager):
220221
# For performance reasons, we don't want to redraw the figure after
221222
# each draw command. Instead, we mark the figure as invalid, so that it
Collapse file

‎lib/matplotlib/backends/backend_webagg.py‎

Copy file name to clipboardExpand all lines: lib/matplotlib/backends/backend_webagg.py
+2-3Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,7 @@ def get(self):
108108
"all_figures.html",
109109
prefix=self.url_prefix,
110110
ws_uri=ws_uri,
111-
figures=sorted(
112-
list(Gcf.figs.items()), key=lambda item: item[0]),
111+
figures=sorted(Gcf.figs.items()),
113112
toolitems=core.NavigationToolbar2WebAgg.toolitems)
114113

115114
class MplJs(tornado.web.RequestHandler):
@@ -326,7 +325,7 @@ def ipython_inline_display(figure):
326325
@_Backend.export
327326
class _BackendWebAgg(_Backend):
328327
FigureCanvas = FigureCanvasWebAgg
329-
FigureManager = FigureManagerWebAgg
328+
FigureManager = core.FigureManagerWebAgg
330329

331330
@staticmethod
332331
def trigger_manager_draw(manager):

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.