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

Skip to content

Commit fa4b1ee

Browse files
committed
TST : added test for bxp
Adds test for case where `sym` kwarg to `bxp` does not specify color
1 parent 9937813 commit fa4b1ee

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

lib/matplotlib/tests/test_axes.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1529,6 +1529,20 @@ def test_boxplot():
15291529
ax.set_ylim((-30, 30))
15301530

15311531

1532+
@image_comparison(baseline_images=['boxplot_sym2'],
1533+
remove_text=True, extensions=['png'])
1534+
def test_boxplot_sym2():
1535+
x = np.linspace(-7, 7, 140)
1536+
x = np.hstack([-25, x, 25])
1537+
fig, [ax1, ax2] = plt.subplots(1, 2)
1538+
1539+
ax1.boxplot([x, x], bootstrap=10000, sym='^')
1540+
ax1.set_ylim((-30, 30))
1541+
1542+
ax2.boxplot([x, x], bootstrap=10000, sym='g')
1543+
ax2.set_ylim((-30, 30))
1544+
1545+
15321546
@image_comparison(baseline_images=['boxplot_sym'],
15331547
remove_text=True, extensions=['png'],
15341548
savefig_kwarg={'dpi': 40})

0 commit comments

Comments
 (0)