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

Skip to content

Boxplot zorder kwarg #7178

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Sep 29, 2016
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Added box plot zorder test
  • Loading branch information
bcongdon committed Sep 26, 2016
commit 72b5d3e9899e322da8c24739a27ee9f1493789e4
8 changes: 8 additions & 0 deletions lib/matplotlib/tests/test_axes.py
Original file line number Diff line number Diff line change
Expand Up @@ -2012,6 +2012,14 @@ def test_boxplot_bad_ci_1():
conf_intervals=[[1, 2]])


@cleanup
def test_boxplot_zorder():
x = np.arange(10)
fix, ax = plt.subplots()
assert ax.boxplot(x)['boxes'][0].get_zorder() == 2
assert ax.boxplot(x, zorder=10)['boxes'][0].get_zorder() == 10


@cleanup
def test_boxplot_bad_ci_2():
x = np.linspace(-7, 7, 140)
Expand Down