Skip to content

Commit 3f2f4db

Browse files
committed
new isort
1 parent 893d2c6 commit 3f2f4db

Some content is hidden

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

54 files changed

+36
-70
lines changed

test/helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def assert_equality(
4545
this_dir = os.path.dirname(os.path.abspath(__file__))
4646
with open(os.path.join(this_dir, filename), encoding="utf-8") as f:
4747
reference = f.read()
48-
assert reference == code, _unidiff_output(code, reference)
48+
assert reference == code, _unidiff_output(reference, code)
4949

5050
if assert_compilation:
5151
plot()

test/test_annotate.py

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

65

test/test_axvline.py

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

65

test/test_barchart.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
"""
66
import matplotlib.pyplot as plt
77
import numpy as np
8-
98
from helpers import assert_equality
109

1110

test/test_barchart_errorbars.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
"""
66
import matplotlib.pyplot as plt
77
import numpy as np
8-
98
from helpers import assert_equality
109

1110

test/test_barchart_legend.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
"""
1010
import matplotlib.pyplot as plt
1111
import numpy as np
12-
1312
from helpers import assert_equality
1413

1514

@@ -34,7 +33,6 @@ def plot():
3433

3534
def test():
3635
assert_equality(plot, "test_barchart_legend_reference.tex")
37-
return
3836

3937

4038
if __name__ == "__main__":

test/test_barchart_legend_reference.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
\begin{axis}[
44
legend cell align={left},
5-
legend style={fill opacity=0.8, draw opacity=1, text opacity=1, draw=white!80!black},
5+
legend style={fill opacity=0.8, draw opacity=1, text opacity=1, at={(0.5,0.91)}, anchor=north, draw=white!80!black},
66
tick align=outside,
77
tick pos=left,
88
x grid style={white!69.019608!black},

test/test_basic_sin.py

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

65

test/test_boxplot.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
See: https://github.com/nschloe/tikzplotlib/pull/134
77
"""
88
import matplotlib.pyplot as plt
9-
109
from helpers import assert_equality
1110

1211

test/test_cleanfigure.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ def test_wireframe3D(self):
203203

204204
def test_surface3D(self):
205205
from matplotlib import cm
206-
from matplotlib.ticker import LinearLocator, FormatStrFormatter
206+
from matplotlib.ticker import FormatStrFormatter, LinearLocator
207207

208208
# Make data.
209209
X = np.arange(-5, 5, 0.25)
@@ -265,8 +265,8 @@ def test_trisurface3D(self):
265265
plt.close("all")
266266

267267
def test_contour3D(self):
268-
from mpl_toolkits.mplot3d import axes3d
269268
from matplotlib import cm
269+
from mpl_toolkits.mplot3d import axes3d
270270

271271
with plt.rc_context(rc=RC_PARAMS):
272272
fig = plt.figure()
@@ -279,8 +279,8 @@ def test_contour3D(self):
279279
plt.close("all")
280280

281281
def test_polygon3D(self):
282-
from matplotlib.collections import PolyCollection
283282
from matplotlib import colors as mcolors
283+
from matplotlib.collections import PolyCollection
284284

285285
with plt.rc_context(rc=RC_PARAMS):
286286
fig = plt.figure()

0 commit comments

Comments
 (0)