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

Function test_boxplot_capwidths

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

Source from the content-addressed store, hash-verified

2328
2329
2330def test_boxplot_capwidths():
2331 data = np.random.rand(5, 3)
2332 fig, axs = plt.subplots(9)
2333
2334 axs[0].boxplot(data, capwidths=[0.3, 0.2, 0.1], widths=[0.1, 0.2, 0.3])
2335 axs[1].boxplot(data, capwidths=[0.3, 0.2, 0.1], widths=0.2)
2336 axs[2].boxplot(data, capwidths=[0.3, 0.2, 0.1])
2337
2338 axs[3].boxplot(data, capwidths=0.5, widths=[0.1, 0.2, 0.3])
2339 axs[4].boxplot(data, capwidths=0.5, widths=0.2)
2340 axs[5].boxplot(data, capwidths=0.5)
2341
2342 axs[6].boxplot(data, widths=[0.1, 0.2, 0.3])
2343 axs[7].boxplot(data, widths=0.2)
2344 axs[8].boxplot(data)
2345
2346
2347def test_pcolor_regression(pd):

Callers

nothing calls this directly

Calls 2

boxplotMethod · 0.80
subplotsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…