Skip to content

Remove some unused variables and imports #12190

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
Sep 21, 2018
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
1 change: 0 additions & 1 deletion examples/text_labels_and_annotations/arrow_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ def do_fontsize(k):
max_head_length = 2 * max_arrow_width
arrow_params = {'length_includes_head': True, 'shape': shape,
'head_starts_at_zero': head_starts_at_zero}
ax = plt.gca()
sf = 0.6 # max arrow size represents this in data coords

d = (r2 / 2 + arrow_h_offset - 0.5) / r2 # distance for diags
Expand Down
1 change: 0 additions & 1 deletion examples/user_interfaces/embedding_in_wx3_sgskip.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ def OnInit(self):
bang_button.Bind(wx.EVT_BUTTON, self.OnBang)

# final setup ------------------
sizer = self.panel.GetSizer()
self.frame.Show(1)

self.SetTopWindow(self.frame)
Expand Down
1 change: 0 additions & 1 deletion examples/user_interfaces/toolmanager_sgskip.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ def disable(self, *args):
self.set_lines_visibility(False)

def set_lines_visibility(self, state):
gr_lines = []
for ax in self.figure.get_axes():
for line in ax.get_lines():
if line.get_gid() == self.gid:
Expand Down
1 change: 0 additions & 1 deletion setupext.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import glob
import hashlib
import importlib
import multiprocessing
import os
import pathlib
import platform
Expand Down
1 change: 0 additions & 1 deletion tools/triage_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ def eventFilter(self, receiver, event):
self.window.keyPressEvent(event)
return True
else:
return False
return super().eventFilter(receiver, event)


Expand Down
5 changes: 1 addition & 4 deletions tutorials/intermediate/constrainedlayout_guide.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,12 @@

# sphinx_gallery_thumbnail_number = 18

#import matplotlib
#matplotlib.use('Qt5Agg')

import matplotlib.pyplot as plt
import numpy as np
import matplotlib.colors as mcolors
import matplotlib.gridspec as gridspec
import numpy as np

import matplotlib._layoutbox as layoutbox

plt.rcParams['savefig.facecolor'] = "0.8"
plt.rcParams['figure.figsize'] = 4.5, 4.
Expand Down
1 change: 0 additions & 1 deletion tutorials/introductory/images.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@

import matplotlib.pyplot as plt
import matplotlib.image as mpimg
import numpy as np

###############################################################################
# .. _importing_data:
Expand Down