8000 TST: add test of correctly getting the limits for multi-histogram · matplotlib/matplotlib@5892d62 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5892d62

Browse files
committed
TST: add test of correctly getting the limits for multi-histogram
1 parent 0c8e9d8 commit 5892d62

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/matplotlib/tests/test_axes.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6346,3 +6346,9 @@ def test_datetime_masked():
63466346
ax.plot(x, m)
63476347
# these are the default viewlim
63486348
assert ax.get_xlim() == (730120.0, 733773.0)
6349+
6350+
6351+
def test_hist_auto_bins():
6352+
_, bins, _ = plt.hist([[1, 2, 3], [3, 4, 5, 6]], bins='auto')
6353+
assert bins[0] <= 1
6354+
assert bins[-1] >= 6

0 commit comments

Comments
 (0)
0