MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / test_hist

Function test_hist

lib/matplotlib/tests/test_category.py:317–321  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

315
316
317def 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
324def test_set_lim():

Callers

nothing calls this directly

Calls 2

histMethod · 0.80
subplotsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…