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

Remove a few unnecessary global statements. #9678

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 5, 2017
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
Remove a few unnecessary global statements.
  • Loading branch information
anntzer committed Nov 4, 2017
commit 303ebb6c3183ef3c0c544403bba8f93d0cc7a2b5
4 changes: 1 addition & 3 deletions 4 examples/axisartist/demo_floating_axis.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,8 @@


def curvelinear_test2(fig):
"""Polar projection, but in a rectangular box.
"""
polar projection, but in a rectangular box.
"""
global ax1
# see demo_curvelinear_grid.py for details
tr = Affine2D().scale(np.pi / 180., 1.) + PolarAxes.PolarTransform()

Expand Down
2 changes: 0 additions & 2 deletions 2 lib/matplotlib/backends/backend_qt5.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,6 @@ def new_timer(self, *args, **kwargs):
return TimerQT(*args, **kwargs)

def flush_events(self):
global qApp
qApp.processEvents()

def start_event_loop(self, timeout=0):
Expand Down Expand Up @@ -858,5 +857,4 @@ def trigger_manager_draw(manager):
def mainloop():
# allow KeyboardInterrupt exceptions to close the plot window.
signal.signal(signal.SIGINT, signal.SIG_DFL)
global qApp
qApp.exec_()
Morty Proxy This is a proxified and sanitized view of the page, visit original site.