| 3883 | 'boxplot_autorange_true_whiskers.png'], |
| 3884 | style='default') |
| 3885 | def test_boxplot_autorange_whiskers(): |
| 3886 | # Randomness used for bootstrapping. |
| 3887 | np.random.seed(937) |
| 3888 | |
| 3889 | x = np.ones(140) |
| 3890 | x = np.hstack([0, x, 2]) |
| 3891 | |
| 3892 | fig1, ax1 = plt.subplots() |
| 3893 | ax1.boxplot([x, x], bootstrap=10000, notch=1) |
| 3894 | ax1.set_ylim(-5, 5) |
| 3895 | |
| 3896 | fig2, ax2 = plt.subplots() |
| 3897 | ax2.boxplot([x, x], bootstrap=10000, notch=1, autorange=True) |
| 3898 | ax2.set_ylim(-5, 5) |
| 3899 | |
| 3900 | |
| 3901 | def _rc_test_bxp_helper(ax, rc_dict): |