Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit fa4b1ee

Browse filesBrowse 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
Copy full SHA for fa4b1ee

File tree

Expand file treeCollapse file tree

2 files changed

+14
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

2 files changed

+14
-0
lines changed
Open diff view settings
Collapse file
5.38 KB
  • Display the source diff
  • Display the rich diff
Loading
Collapse file

‎lib/matplotlib/tests/test_axes.py‎

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_axes.py
+14Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.