()
| 5292 | |
| 5293 | |
| 5294 | def test_hist_unused_labels(): |
| 5295 | # When a list with one dataset and N elements is provided and N labels, ensure |
| 5296 | # that the first label is used for the dataset and all other labels are ignored |
| 5297 | fig, ax = plt.subplots() |
| 5298 | ax.hist([[1, 2, 3]], label=["values", "unused", "also unused"]) |
| 5299 | _, labels = ax.get_legend_handles_labels() |
| 5300 | assert labels == ["values"] |
| 5301 | |
| 5302 | |
| 5303 | def test_hist_labels(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…