()
| 315 | |
| 316 | |
| 317 | def test_hist(): |
| 318 | fig, ax = plt.subplots() |
| 319 | n, bins, patches = ax.hist(['a', 'b', 'a', 'c', 'ff']) |
| 320 | assert n.shape == (10,) |
| 321 | np.testing.assert_allclose(n, [2., 0., 0., 1., 0., 0., 1., 0., 0., 1.]) |
| 322 | |
| 323 | |
| 324 | def test_set_lim(): |