Skip to content

Commit d701d5c

Browse files
authored
Merge pull request #12190 from timhoffm/lgtm-unused3
Remove some unused variables and imports
2 parents 09e9504 + 3a7a9f4 commit d701d5c

File tree

7 files changed

+1
-10
lines changed

7 files changed

+1
-10
lines changed

examples/text_labels_and_annotations/arrow_demo.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@ def do_fontsize(k):
125125
max_head_length = 2 * max_arrow_width
126126
arrow_params = {'length_includes_head': True, 'shape': shape,
127127
'head_starts_at_zero': head_starts_at_zero}
128-
ax = plt.gca()
129128
sf = 0.6 # max arrow size represents this in data coords
130129

131130
d = (r2 / 2 + arrow_h_offset - 0.5) / r2 # distance for diags

examples/user_interfaces/embedding_in_wx3_sgskip.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,6 @@ def OnInit(self):
131131
bang_button.Bind(wx.EVT_BUTTON, self.OnBang)
132132

133133
# final setup ------------------
134-
sizer = self.panel.GetSizer()
135134
self.frame.Show(1)
136135

137136
self.SetTopWindow(self.frame)

examples/user_interfaces/toolmanager_sgskip.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ def disable(self, *args):
6161
self.set_lines_visibility(False)
6262

6363
def set_lines_visibility(self, state):
64-
gr_lines = []
6564
for ax in self.figure.get_axes():
6665
for line in ax.get_lines():
6766
if line.get_gid() == self.gid:

setupext.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import glob
66
import hashlib
77
import importlib
8-
import multiprocessing
98
import os
109
import pathlib
1110
import platform

tools/triage_tests.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ def eventFilter(self, receiver, event):
102102
self.window.keyPressEvent(event)
103103
return True
104104
else:
105-
return False
106105
return super().eventFilter(receiver, event)
107106

108107

tutorials/intermediate/constrainedlayout_guide.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,12 @@
4949

5050
# sphinx_gallery_thumbnail_number = 18
5151

52-
#import matplotlib
53-
#matplotlib.use('Qt5Agg')
5452

5553
import matplotlib.pyplot as plt
56-
import numpy as np
5754
import matplotlib.colors as mcolors
5855
import matplotlib.gridspec as gridspec
56+
import numpy as np
5957

60-
import matplotlib._layoutbox as layoutbox
6158

6259
plt.rcParams['savefig.facecolor'] = "0.8"
6360
plt.rcParams['figure.figsize'] = 4.5, 4.

tutorials/introductory/images.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@
4949

5050
import matplotlib.pyplot as plt
5151
import matplotlib.image as mpimg
52-
import numpy as np
5352

5453
###############################################################################
5554
# .. _importing_data:

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy