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

Function test_boxplot

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

Source from the content-addressed store, hash-verified

3808
3809@image_comparison(['boxplot.png', 'boxplot.png'], tol=0.43, style='default')
3810def test_boxplot():
3811 # Randomness used for bootstrapping.
3812 np.random.seed(937)
3813
3814 x = np.linspace(-7, 7, 140)
3815 x = np.hstack([-25, x, 25])
3816 fig, ax = plt.subplots()
3817
3818 ax.boxplot([x, x], bootstrap=10000, notch=1)
3819 ax.set_ylim(-30, 30)
3820
3821 # Reuse testcase from above for a labeled data test
3822 data = {"x": [x, x]}
3823 fig, ax = plt.subplots()
3824 ax.boxplot("x", bootstrap=10000, notch=1, data=data)
3825 ax.set_ylim(-30, 30)
3826
3827
3828@check_figures_equal()

Callers

nothing calls this directly

Calls 3

boxplotMethod · 0.80
subplotsMethod · 0.45
set_ylimMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…