@@ -8220,43 +8220,41 @@ def violinplot(self, dataset, positions=None, vert=True, widths=0.5,
82208220 The input data.
82218221
82228222 positions : array-like, default: [1, 2, ..., n]
8223- The positions of the violins. The ticks and limits are
8224- automatically set to match the positions .
8223+ The positions of the violins; i.e. coordinates on the x-axis for
8224+ vertical violins (or y-axis for horizontal violins) .
82258225
82268226 vert : bool, default: True.
82278227 If true, creates a vertical violin plot.
82288228 Otherwise, creates a horizontal violin plot.
82298229
8230- widths : array-like, default: 0.5
8231- Either a scalar or a vector that sets the maximal width of
8232- each violin. The default is 0.5, which uses about half of the
8233- available horizontal space .
8230+ widths : float or array-like, default: 0.5
8231+ The maximum width of each violin in units of the *positions* axis.
8232+ The default is 0.5, which is half the available space when using default
8233+ *positions* .
82348234
82358235 showmeans : bool, default: False
8236- If `True`, will toggle rendering of the means .
8236+ Whether to show the mean with a line .
82378237
82388238 showextrema : bool, default: True
8239- If `True`, will toggle rendering of the extrema .
8239+ Whether to show extrema with a line .
82408240
82418241 showmedians : bool, default: False
8242- If `True`, will toggle rendering of the medians .
8242+ Whether to show the median with a line .
82438243
82448244 quantiles : array-like, default: None
82458245 If not None, set a list of floats in interval [0, 1] for each violin,
82468246 which stands for the quantiles that will be rendered for that
82478247 violin.
82488248
82498249 points : int, default: 100
8250- Defines the number of points to evaluate each of the
8251- gaussian kernel density estimations at.
8250+ The number of points to evaluate each of the gaussian kernel density
8251+ estimations at.
82528252
8253- bw_method : str, scalar or callable, optional
8254- The method used to calculate the estimator bandwidth. This can be
8255- 'scott', 'silverman', a scalar constant or a callable. If a
8256- scalar, this will be used directly as `kde.factor`. If a
8253+ bw_method : {'scott', 'silverman'} or float or callable, default: 'scott'
8254+ The method used to calculate the estimator bandwidth. If a
8255+ float, this will be used directly as `kde.factor`. If a
82578256 callable, it should take a `matplotlib.mlab.GaussianKDE` instance as
8258- its only parameter and return a scalar. If None (default), 'scott'
8259- is used.
8257+ its only parameter and return a float.
82608258
82618259 data : indexable object, optional
82628260 DATA_PARAMETER_PLACEHOLDER
@@ -8347,26 +8345,26 @@ def violin(self, vpstats, positions=None, vert=True, widths=0.5,
83478345 for this violin's dataset.
83488346
83498347 positions : array-like, default: [1, 2, ..., n]
8350- The positions of the violins. The ticks and limits are
8351- automatically set to match the positions .
8348+ The positions of the violins; i.e. coordinates on the x-axis for
8349+ vertical violins (or y-axis for horizontal violins) .
83528350
83538351 vert : bool, default: True.
83548352 If true, plots the violins vertically.
83558353 Otherwise, plots the violins horizontally.
83568354
8357- widths : array-like, default: 0.5
8358- Either a scalar or a vector that sets the maximal width of
8359- each violin. The default is 0.5, which uses about half of the
8360- available horizontal space .
8355+ widths : float or array-like, default: 0.5
8356+ The maximum width of each violin in units of the *positions* axis.
8357+ The default is 0.5, which is half available space when using default
8358+ *positions* .
83618359
83628360 showmeans : bool, default: False
8363- If true, will toggle rendering of the means .
8361+ Whether to show the mean with a line .
83648362
83658363 showextrema : bool, default: True
8366- If true, will toggle rendering of the extrema .
8364+ Whether to show extrema with a line .
83678365
83688366 showmedians : bool, default: False
8369- If true, will toggle rendering of the medians .
8367+ Whether to show the median with a line .
83708368
83718369 Returns
83728370 -------
0 commit comments