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

Skip to content

Commit 7b3374a

Browse files
committed
TST: normed->density
1 parent 53fad85 commit 7b3374a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/tests/test_axes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1565,13 +1565,13 @@ def test_hist_step_log_bottom():
15651565
ax.set_ylim(9e-3, 1e3)
15661566

15671567

1568-
def test_hist_unequal_bins_normed():
1568+
def test_hist_unequal_bins_density():
15691569
# Test correct behavior of normalized histogram with unequal bins
15701570
# https://github.com/matplotlib/matplotlib/issues/9557
15711571
rng = np.random.RandomState(57483)
15721572
t = rng.randn(100)
15731573
bins = [-3, -1, -0.5, 0, 1, 5]
1574-
mpl_heights, _, _ = plt.hist(t, bins=bins, normed=True)
1574+
mpl_heights, _, _ = plt.hist(t, bins=bins, density=True)
15751575
np_heights, _ = np.histogram(t, bins=bins, density=True)
15761576
assert_allclose(mpl_heights, np_heights)
15771577

0 commit comments

Comments
 (0)