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

Function test_vert_violinplot_baseline

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

Source from the content-addressed store, hash-verified

4059@image_comparison(['violinplot_vert_baseline.png',
4060 'violinplot_vert_baseline.png'], style='mpl20')
4061def test_vert_violinplot_baseline():
4062 # First 9 digits of frac(sqrt(2))
4063 np.random.seed(414213562)
4064 data = [np.random.normal(size=100) for _ in range(4)]
4065 ax = plt.axes()
4066 ax.violinplot(data, positions=range(4), showmeans=False, showextrema=False,
4067 showmedians=False)
4068
4069 # Reuse testcase from above for a labeled data test
4070 data = {"d": data}
4071 fig, ax = plt.subplots()
4072 ax.violinplot("d", positions=range(4), showmeans=False, showextrema=False,
4073 showmedians=False, data=data)
4074
4075
4076@image_comparison(['violinplot_vert_showmeans.png'], style='mpl20')

Callers

nothing calls this directly

Calls 3

violinplotMethod · 0.80
axesMethod · 0.45
subplotsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…