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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lib/matplotlib/backends/backend_webagg.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,14 @@ class ServerThread(threading.Thread):
def run(self):
tornado.ioloop.IOLoop.instance().start()


webagg_server_thread = ServerThread()


class FigureCanvasWebAgg(core.FigureCanvasWebAggCore):
def show(self):
# show the figure window
global show # placates pyflakes: created by @_Backend.export below
show()

def new_timer(self, *args, **kwargs):
Expand Down
2 changes: 2 additions & 0 deletions lib/matplotlib/backends/backend_wx.py
Original file line number Diff line number Diff line change
Expand Up @@ -1456,6 +1456,7 @@ def updateButtonText(self, lst):
@cbook.deprecated("2.2")
class SubplotToolWX(wx.Frame):
def __init__(self, targetfig):
global FigureManager # placates pyflakes: created by @_Backend.export
wx.Frame.__init__(self, None, -1, "Configure subplots")

toolfig = Figure((6, 3))
Expand Down Expand Up @@ -1519,6 +1520,7 @@ def pan(self, *args):
NavigationToolbar2.pan(self, *args)

def configure_subplots(self, evt):
global FigureManager # placates pyflakes: created by @_Backend.export
frame = wx.Frame(None, -1, "Configure subplots")

toolfig = Figure((6, 3))
Expand Down