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

Skip to content

Commit f6e376d

Browse files
committed
Fix missing qualified name in webagg.
1 parent 078e9f0 commit f6e376d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lib/matplotlib/backends/backend_webagg.py

Lines changed: 3 additions & 4 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),
113112
toolitems=core.NavigationToolbar2WebAgg.toolitems)
114113

115114
class MplJs(tornado.web.RequestHandler):
@@ -192,7 +191,7 @@ def __init__(self, url_prefix=''):
192191
# Static files for the CSS and JS
193192
(url_prefix + r'/_static/(.*)',
194193
tornado.web.StaticFileHandler,
195-
{'path': core.FigureManagerWebAgg.get_static_file_path()}),
194+
{'path': cre.FigureManagerWebAgg.get_static_file_path()}),
196195

197196
# An MPL favicon
198197
(url_prefix + r'/favicon.ico', self.FavIcon),
@@ -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)