(fig_test, fig_ref)
| 3827 | |
| 3828 | @check_figures_equal() |
| 3829 | def 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'], |