@@ -1126,9 +1126,7 @@ def _broadcast_with_masks(*args, compress=False):
1126
1126
return inputs
1127
1127
1128
1128
1129
- @_api .rename_parameter ("3.9" , "labels" , "tick_labels" )
1130
- def boxplot_stats (X , whis = 1.5 , bootstrap = None , tick_labels = None ,
1131
- autorange = False ):
1129
+ def boxplot_stats (X , whis = 1.5 , bootstrap = None , labels = None , autorange = False ):
1132
1130
r"""
1133
1131
Return a list of dictionaries of statistics used to draw a series of box
1134
1132
and whisker plots using `~.Axes.bxp`.
@@ -1162,14 +1160,10 @@ def boxplot_stats(X, whis=1.5, bootstrap=None, tick_labels=None,
1162
1160
Number of times the confidence intervals around the median
1163
1161
should be bootstrapped (percentile method).
1164
1162
1165
- tick_labels : array-like , optional
1163
+ labels : list of str , optional
1166
1164
Labels for each dataset. Length must be compatible with
1167
1165
dimensions of *X*.
1168
1166
1169
- .. versionchanged:: 3.9
1170
- Renamed from *labels*, which is deprecated since 3.9
1171
- and will be removed in 3.11.
1172
-
1173
1167
autorange : bool, optional (False)
1174
1168
When `True` and the data are distributed such that the 25th and 75th
1175
1169
percentiles are equal, ``whis`` is set to (0, 100) such that the
@@ -1245,13 +1239,13 @@ def _compute_conf_interval(data, med, iqr, bootstrap):
1245
1239
X = _reshape_2D (X , "X" )
1246
1240
1247
1241
ncols = len (X )
1248
- if tick_labels is None :
1249
- tick_labels = itertools .repeat (None )
1250
- elif len (tick_labels ) != ncols :
1251
- raise ValueError ("Dimensions of tick_labels and X must be compatible" )
1242
+ if labels is None :
1243
+ labels = itertools .repeat (None )
1244
+ elif len (labels ) != ncols :
1245
+ raise ValueError ("Dimensions of labels and X must be compatible" )
1252
1246
1253
1247
input_whis = whis
1254
- for ii , (x , label ) in enumerate (zip (X , tick_labels )):
1248
+ for ii , (x , label ) in enumerate (zip (X , labels )):
1255
1249
1256
1250
# empty dict
1257
1251
stats = {}
0 commit comments