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

Function test_grouped_bar

lib/matplotlib/tests/test_axes.py:2209–2220  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2207
2208@image_comparison(["grouped_bar.png"], style="mpl20")
2209def 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()

Callers

nothing calls this directly

Calls 3

grouped_barMethod · 0.80
set_yticksMethod · 0.80
subplotsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…