(fig_test, fig_ref)
| 2259 | |
| 2260 | @check_figures_equal() |
| 2261 | def test_grouped_bar_array(fig_test, fig_ref): |
| 2262 | categories = ['A', 'B'] |
| 2263 | array = np.array([[1, 2, 3], [1.2, 2.4, 3.6]]) |
| 2264 | labels = ['data1', 'data2', 'data3'] |
| 2265 | |
| 2266 | ax = fig_test.subplots() |
| 2267 | ax.grouped_bar(array, tick_labels=categories, labels=labels) |
| 2268 | ax.legend() |
| 2269 | |
| 2270 | ax = fig_ref.subplots() |
| 2271 | list_of_datasets = [column for column in array.T] |
| 2272 | ax.grouped_bar(list_of_datasets, tick_labels=categories, labels=labels) |
| 2273 | ax.legend() |
| 2274 | |
| 2275 | |
| 2276 | @check_figures_equal() |
nothing calls this directly
no test coverage detected
searching dependent graphs…