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

Skip to content

Commit ab54089

Browse files
committed
TST: add test of correctly getting the limits for multi-histogram
1 parent dab2a16 commit ab54089

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
@@ -6063,3 +6063,9 @@ def invert(x):
60636063
fig.canvas.draw()
60646064
fig.set_size_inches((7, 4))
60656065
assert_allclose(ax.get_position().extents, [0.125, 0.1, 0.9, 0.9])
6066+
6067+
6068+
def test_hist_auto_bins():
6069+
_, bins, _ = plt.hist([[1, 2, 3], [4, 5, 6]], bins='auto')
6070+
assert bins[0] <= 1
6071+
assert bins[-1] >= 6

0 commit comments

Comments
 (0)
0