Skip to content

Commit 4b62230

Browse files
committed
Merge pull request #382 from cpelley/flakeall
Removed most redundant imports
2 parents d2965b9 + 0ea14a2 commit 4b62230

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+7
-53
lines changed

docs/iris/example_code/graphics/COP_1d_plot.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,9 @@
1818
New Study For Climate Modeling, Analyses, and Scenarios. Eos Trans. AGU, Vol 90, No. 21.
1919
2020
"""
21-
import os.path
22-
2321
import numpy as np
2422
import matplotlib.pyplot as plt
2523
import iris
26-
import iris.coords as coords
2724
import iris.plot as iplt
2825
import iris.quickplot as qplt
2926

docs/iris/example_code/graphics/SOI_filtering.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def main():
7777
weights=wgts84)
7878

7979
# plot the SOI time series and both filtered versions
80-
fig = plt.figure(figsize=(9, 4))
80+
plt.figure(figsize=(9, 4))
8181
iplt.plot(soi, coords=['time'], color='0.7', linewidth=1., linestyle='-',
8282
alpha=1., label='no filter')
8383
iplt.plot(soi24, coords=['time'], color='b', linewidth=2., linestyle='-',

docs/iris/example_code/graphics/TEC.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
import numpy.ma as ma
1414

1515
import iris
16-
import iris.plot as iplt
1716
import iris.quickplot as qplt
1817

1918

docs/iris/example_code/graphics/deriving_phenomena.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
plot.
1010
1111
"""
12-
import itertools
1312
import matplotlib.pyplot as plt
1413
import matplotlib.ticker
1514

docs/iris/example_code/graphics/global_map.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import matplotlib.pyplot as plt
1010

1111
import iris
12-
import iris.plot as iplt
1312
import iris.quickplot as qplt
1413

1514

docs/iris/example_code/graphics/rotated_pole_mapping.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def main():
5555

5656
# Plot #4: Block plot
5757
plt.figure()
58-
ax = plt.axes(projection=ccrs.PlateCarree())
58+
plt.axes(projection=ccrs.PlateCarree())
5959
iplt.pcolormesh(temperature)
6060
plt.gca().stock_img()
6161
plt.gca().coastlines()

docs/iris/src/sphinxext/gen_example_directory.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
"""
2020
Generate the rst files for the examples
2121
"""
22-
import glob
2322
import os
2423
import re
2524
import sys

docs/iris/src/sphinxext/gen_gallery.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
{%% endblock %%}
1818
"""
1919

20-
import os, glob, re, sys, warnings
20+
import os, glob, re, warnings
2121
import matplotlib.image as image
2222

2323
multiimage = re.compile('(.*)_\d\d')

docs/iris/src/sphinxext/gen_rst.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
"""
55
generate the rst files for the examples by iterating over the pylab examples
66
"""
7-
import os, glob
8-
97
import os
108
import re
119
import sys

docs/iris/src/sphinxext/plot_directive.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@
9090
import matplotlib.pyplot as plt
9191
import matplotlib.image as image
9292
from matplotlib import _pylab_helpers
93-
from matplotlib.sphinxext import only_directives
9493

9594

9695
class PlotWarning(Warning):

0 commit comments

Comments
 (0)