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 2674a4c

Browse filesBrowse files
authored
Merge pull request #9678 from anntzer/global
Remove a few unnecessary global statements.
2 parents 901761c + 303ebb6 commit 2674a4c
Copy full SHA for 2674a4c

File tree

Expand file treeCollapse file tree

2 files changed

+1
-5
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+1
-5
lines changed

‎examples/axisartist/demo_floating_axis.py

Copy file name to clipboardExpand all lines: examples/axisartist/demo_floating_axis.py
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,8 @@
1919

2020

2121
def curvelinear_test2(fig):
22+
"""Polar projection, but in a rectangular box.
2223
"""
23-
polar projection, but in a rectangular box.
24-
"""
25-
global ax1
2624
# see demo_curvelinear_grid.py for details
2725
tr = Affine2D().scale(np.pi / 180., 1.) + PolarAxes.PolarTransform()
2826

‎lib/matplotlib/backends/backend_qt5.py

Copy file name to clipboardExpand all lines: lib/matplotlib/backends/backend_qt5.py
-2Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,6 @@ def new_timer(self, *args, **kwargs):
428428
return TimerQT(*args, **kwargs)
429429

430430
def flush_events(self):
431-
global qApp
432431
qApp.processEvents()
433432

434433
def start_event_loop(self, timeout=0):
@@ -858,5 +857,4 @@ def trigger_manager_draw(manager):
858857
def mainloop():
859858
# allow KeyboardInterrupt exceptions to close the plot window.
860859
signal.signal(signal.SIGINT, signal.SIG_DFL)
861-
global qApp
862860
qApp.exec_()

0 commit comments

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