Skip to content

Commit 2674a4c

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

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

examples/axisartist/demo_floating_axis.py

Lines 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

Lines 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)