Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commitc5d2c7f

Browse files
author
cclauss
committed
Declare global variables that are created elsewhere
1 parent8a27054 commitc5d2c7f

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

‎lib/matplotlib/backends/backend_webagg.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,14 @@ class ServerThread(threading.Thread):
4545
defrun(self):
4646
tornado.ioloop.IOLoop.instance().start()
4747

48+
4849
webagg_server_thread=ServerThread()
4950

5051

5152
classFigureCanvasWebAgg(core.FigureCanvasWebAggCore):
5253
defshow(self):
5354
# show the figure window
55+
globalshow# placates pyflakes: created by @_Backend.export below
5456
show()
5557

5658
defnew_timer(self,*args,**kwargs):

‎lib/matplotlib/backends/backend_wx.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1456,6 +1456,7 @@ def updateButtonText(self, lst):
14561456
@cbook.deprecated("2.2")
14571457
classSubplotToolWX(wx.Frame):
14581458
def__init__(self,targetfig):
1459+
globalFigureManager# 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
defconfigure_subplots(self,evt):
1523+
globalFigureManager# 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)

[8]ページ先頭

©2009-2025 Movatter.jp