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

Skip to content

BUG: Fix boxplots with manual confidence intervals passed as a numpy array #2447

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 2 commits into from
Sep 30, 2013
Merged
Show file tree
Hide file tree
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
TST: fixed new test and added baseline PNG
  • Loading branch information
phobson committed Sep 20, 2013
commit 3a970575bab133fb3689899500c37e8ada4e4148
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 2 additions & 4 deletions lib/matplotlib/tests/test_axes.py
Original file line number Diff line number Diff line change
Expand Up @@ -973,9 +973,7 @@ def bump(a):
plt.stackplot(range(100), d.T, baseline='weighted_wiggle')


@image_comparison(baseline_images=['boxplot'],
remove_text=True, extensions=['png'],
savefig_kwarg={'dpi': 40})
@image_comparison(baseline_images=['boxplot'])
def test_boxplot():
x = np.linspace(-7, 7, 140)
x = np.hstack([-25, x, 25])
Expand All @@ -995,7 +993,7 @@ def test_boxplot_with_CIarray():
x = np.hstack([-25, x, 25])
fig = plt.figure()
ax = fig.add_subplot(111)
CIs = np.array([-1.5, 3.], [-1., 3.5])
CIs = np.array([[-1.5, 3.], [-1., 3.5]])

# show 1 boxplot with mpl medians/conf. interfals, 1 with manual values
ax.boxplot([x, x], bootstrap=10000, usermedians=[None, 1.0],
Expand Down