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

Function test_boxplot_masked

lib/matplotlib/tests/test_axes.py:3829–3839  ·  view source on GitHub ↗
(fig_test, fig_ref)

Source from the content-addressed store, hash-verified

3827
3828@check_figures_equal()
3829def test_boxplot_masked(fig_test, fig_ref):
3830 # Check that masked values are ignored when plotting a boxplot
3831 x_orig = np.linspace(-1, 1, 200)
3832
3833 ax = fig_test.subplots()
3834 x = x_orig[x_orig >= 0]
3835 ax.boxplot(x)
3836
3837 x = np.ma.masked_less(x_orig, 0)
3838 ax = fig_ref.subplots()
3839 ax.boxplot(x)
3840
3841
3842@image_comparison(['boxplot_custom_capwidths.png'],

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…