Skip to content

Commit d99c8e0

Browse files
committed
fix broken tests
1 parent e0a39ce commit d99c8e0

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

lib/matplotlib/tests/test_axes.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3747,7 +3747,7 @@ def test_horiz_violinplot_baseline():
37473747
# First 9 digits of frac(sqrt(19))
37483748
np.random.seed(358898943)
37493749
data = [np.random.normal(size=100) for _ in range(4)]
3750-
ax.violinplot(data, positions=range(4), vert=False, showmeans=False,
3750+
ax.violinplot(data, positions=range(4), orientation='horizontal', showmeans=False,
37513751
showextrema=False, showmedians=False)
37523752

37533753

@@ -3757,7 +3757,7 @@ def test_horiz_violinplot_showmedians():
37573757
# First 9 digits of frac(sqrt(23))
37583758
np.random.seed(795831523)
37593759
data = [np.random.normal(size=100) for _ in range(4)]
3760-
ax.violinplot(data, positions=range(4), vert=False, showmeans=False,
3760+
ax.violinplot(data, positions=range(4), orientation='horizontal', showmeans=False,
37613761
showextrema=False, showmedians=True)
37623762

37633763

@@ -3767,7 +3767,7 @@ def test_horiz_violinplot_showmeans():
37673767
# First 9 digits of frac(sqrt(29))
37683768
np.random.seed(385164807)
37693769
data = [np.random.normal(size=100) for _ in range(4)]
3770-
ax.violinplot(data, positions=range(4), vert=False, showmeans=True,
3770+
ax.violinplot(data, positions=range(4), orientation='horizontal', showmeans=True,
37713771
showextrema=False, showmedians=False)
37723772

37733773

@@ -3777,7 +3777,7 @@ def test_horiz_violinplot_showextrema():
37773777
# First 9 digits of frac(sqrt(31))
37783778
np.random.seed(567764362)
37793779
data = [np.random.normal(size=100) for _ in range(4)]
3780-
ax.violinplot(data, positions=range(4), vert=False, showmeans=False,
3780+
ax.violinplot(data, positions=range(4), orientation='horizontal', showmeans=False,
37813781
showextrema=True, showmedians=False)
37823782

37833783

@@ -3787,7 +3787,7 @@ def test_horiz_violinplot_showall():
37873787
# First 9 digits of frac(sqrt(37))
37883788
np.random.seed(82762530)
37893789
data = [np.random.normal(size=100) for _ in range(4)]
3790-
ax.violinplot(data, positions=range(4), vert=False, showmeans=True,
3790+
ax.violinplot(data, positions=range(4), orientation='horizontal', showmeans=True,
37913791
showextrema=True, showmedians=True,
37923792
quantiles=[[0.1, 0.9], [0.2, 0.8], [0.3, 0.7], [0.4, 0.6]])
37933793

@@ -3798,7 +3798,7 @@ def test_horiz_violinplot_custompoints_10():
37983798
# First 9 digits of frac(sqrt(41))
37993799
np.random.seed(403124237)
38003800
data = [np.random.normal(size=100) for _ in range(4)]
3801-
ax.violinplot(data, positions=range(4), vert=False, showmeans=False,
3801+
ax.violinplot(data, positions=range(4), orientation='horizontal', showmeans=False,
38023802
showextrema=False, showmedians=False, points=10)
38033803

38043804

@@ -3808,7 +3808,7 @@ def test_horiz_violinplot_custompoints_200():
38083808
# First 9 digits of frac(sqrt(43))
38093809
np.random.seed(557438524)
38103810
data = [np.random.normal(size=100) for _ in range(4)]
3811-
ax.violinplot(data, positions=range(4), vert=False, showmeans=False,
3811+
ax.violinplot(data, positions=range(4), orientation='horizontal', showmeans=False,
38123812
showextrema=False, showmedians=False, points=200)
38133813

38143814

@@ -3819,11 +3819,11 @@ def test_violinplot_sides():
38193819
data = [np.random.normal(size=100)]
38203820
# Check horizontal violinplot
38213821
for pos, side in zip([0, -0.5, 0.5], ['both', 'low', 'high']):
3822-
ax.violinplot(data, positions=[pos], vert=False, showmeans=False,
3822+
ax.violinplot(data, positions=[pos], orientation='horizontal', showmeans=False,
38233823
showextrema=True, showmedians=True, side=side)
38243824
# Check vertical violinplot
38253825
for pos, side in zip([4, 3.5, 4.5], ['both', 'low', 'high']):
3826-
ax.violinplot(data, positions=[pos], vert=True, showmeans=False,
3826+
ax.violinplot(data, positions=[pos], orientation='vertical', showmeans=False,
38273827
showextrema=True, showmedians=True, side=side)
38283828

38293829

0 commit comments

Comments
 (0)