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

Function test_bar_labels

lib/matplotlib/tests/test_axes.py:2430–2435  ·  view source on GitHub ↗
(x, width, label, expected_labels, container_label)

Source from the content-addressed store, hash-verified

2428 ]
2429)
2430def test_bar_labels(x, width, label, expected_labels, container_label):
2431 _, ax = plt.subplots()
2432 bar_container = ax.bar(x, width, label=label)
2433 bar_labels = [bar.get_label() for bar in bar_container]
2434 assert expected_labels == bar_labels
2435 assert bar_container.get_label() == container_label
2436
2437
2438def test_bar_labels_length():

Callers

nothing calls this directly

Calls 3

subplotsMethod · 0.45
barMethod · 0.45
get_labelMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…