()
| 2207 | |
| 2208 | @image_comparison(["grouped_bar.png"], style="mpl20") |
| 2209 | def test_grouped_bar(): |
| 2210 | data = { |
| 2211 | 'data1': [1, 2, 3], |
| 2212 | 'data2': [1.2, 2.2, 3.2], |
| 2213 | 'data3': [1.4, 2.4, 3.4], |
| 2214 | } |
| 2215 | |
| 2216 | fig, ax = plt.subplots() |
| 2217 | ax.grouped_bar(data, tick_labels=['A', 'B', 'C'], |
| 2218 | group_spacing=0.5, bar_spacing=0.1, |
| 2219 | colors=['#1f77b4', '#58a1cf', '#abd0e6']) |
| 2220 | ax.set_yticks([]) |
| 2221 | |
| 2222 | |
| 2223 | @check_figures_equal() |
nothing calls this directly
no test coverage detected
searching dependent graphs…