Skip to content

Commit c5d2c7f

Browse files
author
cclauss
committed
Declare global variables that are created elsewhere
1 parent 8a27054 commit c5d2c7f

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

lib/matplotlib/backends/backend_webagg.py

+2
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,14 @@ class ServerThread(threading.Thread):
4545
def run(self):
4646
tornado.ioloop.IOLoop.instance().start()
4747

48+
4849
webagg_server_thread = ServerThread()
4950

5051

5152
class FigureCanvasWebAgg(core.FigureCanvasWebAggCore):
5253
def show(self):
5354
# show the figure window
55+
global show # placates pyflakes: created by @_Backend.export below
5456
show()
5557

5658
def new_timer(self, *args, **kwargs):

lib/matplotlib/backends/backend_wx.py

+2
Original file line numberDiff line numberDiff line change
@@ -1456,6 +1456,7 @@ def updateButtonText(self, lst):
14561456
@cbook.deprecated("2.2")
14571457
class SubplotToolWX(wx.Frame):
14581458
def __init__(self, targetfig):
1459+
global FigureManager # placates pyflakes: created by @_Backend.export
14591460
wx.Frame.__init__(self, None, -1, "Configure subplots")
14601461

14611462
toolfig = Figure((6, 3))
@@ -1519,6 +1520,7 @@ def pan(self, *args):
15191520
NavigationToolbar2.pan(self, *args)
15201521

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

15241526
toolfig = Figure((6, 3))

0 commit comments

Comments
 (0)