Function
test_bar_labels
(x, width, label, expected_labels, container_label)
Source from the content-addressed store, hash-verified
| 2428 | ] |
| 2429 | ) |
| 2430 | def 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 | |
| 2438 | def test_bar_labels_length(): |
Callers
nothing calls this directly
Tested by
no test coverage detected
Used in the wild real call sites across dependent graphs
searching dependent graphs…