Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2d3de46

Browse files
committed
Remove duplicated imports
1 parent 562b18e commit 2d3de46

7 files changed

Lines changed: 3 additions & 16 deletions

File tree

doc/pyplots/whats_new_98_4_legend.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import matplotlib.pyplot as plt
22
import numpy as np
3-
import matplotlib.pyplot as plt
43

54

65
ax = plt.subplot(111)
@@ -13,6 +12,3 @@
1312

1413

1514
plt.show()
16-
17-
18-

examples/lines_bars_and_markers/barh_demo.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22
Simple demo of a horizontal bar chart.
33
"""
44
import matplotlib.pyplot as plt
5-
plt.rcdefaults()
65
import numpy as np
7-
import matplotlib.pyplot as plt
6+
plt.rcdefaults()
87

98

109
# Example data

examples/shapes_and_collections/artist_reference.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,12 @@
99
BSD License
1010
"""
1111
import matplotlib.pyplot as plt
12-
plt.rcdefaults()
13-
1412
import numpy as np
15-
import matplotlib.pyplot as plt
1613
import matplotlib.path as mpath
1714
import matplotlib.lines as mlines
1815
import matplotlib.patches as mpatches
1916
from matplotlib.collections import PatchCollection
17+
plt.rcdefaults()
2018

2119

2220
def label(xy, text):

lib/matplotlib/testing/jpl_units/__init__.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,6 @@
4040
from .Epoch import Epoch
4141
from .UnitDbl import UnitDbl
4242

43-
from .Duration import Duration
44-
from .Epoch import Epoch
45-
from .UnitDbl import UnitDbl
46-
4743
from .StrConverter import StrConverter
4844
from .EpochConverter import EpochConverter
4945
from .UnitDblConverter import UnitDblConverter

lib/matplotlib/tests/test_axes.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
import matplotlib.pyplot as plt
2626
import matplotlib.markers as mmarkers
2727
from numpy.testing import assert_allclose, assert_array_equal
28-
import warnings
2928
from matplotlib.cbook import IgnoredKeywordWarning
3029

3130
import sys

lib/matplotlib/tests/test_simplification.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
from pylab import *
12-
import numpy as np
1312
from matplotlib import patches, path, transforms
1413

1514
from nose.tools import raises

lib/mpl_toolkits/axisartist/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from matplotlib.externals import six
55

66
from .axislines import Axes, Subplot, AxesZero, SubplotZero, GridHelperRectlinear, \
7-
AxisArtistHelperRectlinear, AxisArtistHelper, GridHelperBase, AxisArtist
7+
AxisArtistHelperRectlinear, AxisArtistHelper, GridHelperBase
88
from .axis_artist import AxisArtist, GridlinesCollection
99

1010
from .grid_helper_curvelinear import GridHelperCurveLinear

0 commit comments

Comments
 (0)