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

Function test_boxplot_rc_parameters

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

Source from the content-addressed store, hash-verified

3910 savefig_kwarg={'dpi': 100}, remove_text=True,
3911 tol=1, style='default')
3912def test_boxplot_rc_parameters():
3913 # Randomness used for bootstrapping.
3914 np.random.seed(937)
3915
3916 fig, ax = plt.subplots(3)
3917
3918 rc_axis0 = {
3919 'boxplot.notch': True,
3920 'boxplot.whiskers': [5, 95],
3921 'boxplot.bootstrap': 10000,
3922
3923 'boxplot.flierprops.color': 'b',
3924 'boxplot.flierprops.marker': 'o',
3925 'boxplot.flierprops.markerfacecolor': 'g',
3926 'boxplot.flierprops.markeredgecolor': 'b',
3927 'boxplot.flierprops.markersize': 5,
3928 'boxplot.flierprops.linestyle': '--',
3929 'boxplot.flierprops.linewidth': 2.0,
3930
3931 'boxplot.boxprops.color': 'r',
3932 'boxplot.boxprops.linewidth': 2.0,
3933 'boxplot.boxprops.linestyle': '--',
3934
3935 'boxplot.capprops.color': 'c',
3936 'boxplot.capprops.linewidth': 2.0,
3937 'boxplot.capprops.linestyle': '--',
3938
3939 'boxplot.medianprops.color': 'k',
3940 'boxplot.medianprops.linewidth': 2.0,
3941 'boxplot.medianprops.linestyle': '--',
3942 }
3943
3944 rc_axis1 = {
3945 'boxplot.whiskers': [0, 100],
3946 'boxplot.patchartist': True,
3947 }
3948
3949 rc_axis2 = {
3950 'boxplot.whiskers': 2.0,
3951 'boxplot.showcaps': False,
3952 'boxplot.showbox': False,
3953 'boxplot.showfliers': False,
3954 'boxplot.showmeans': True,
3955 'boxplot.meanline': True,
3956
3957 'boxplot.meanprops.color': 'c',
3958 'boxplot.meanprops.linewidth': 2.0,
3959 'boxplot.meanprops.linestyle': '--',
3960
3961 'boxplot.whiskerprops.color': 'r',
3962 'boxplot.whiskerprops.linewidth': 2.0,
3963 'boxplot.whiskerprops.linestyle': '-.',
3964 }
3965 dict_list = [rc_axis0, rc_axis1, rc_axis2]
3966 for axis, rc_axis in zip(ax, dict_list):
3967 _rc_test_bxp_helper(axis, rc_axis)
3968
3969 assert (matplotlib.patches.PathPatch in

Callers

nothing calls this directly

Calls 3

_rc_test_bxp_helperFunction · 0.85
subplotsMethod · 0.45
get_childrenMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…