@@ -4176,62 +4176,62 @@ def bxp(self, bxpstats, positions=None, widths=None, vert=True,
41764176 Parameters
41774177 ----------
41784178 bxpstats : list of dicts
4179- A list of dictionaries containing stats for each boxplot.
4180- Required keys are:
4179+ A list of dictionaries containing stats for each boxplot.
4180+ Required keys are:
41814181
4182- - ``med``: Median (scalar).
4183- - ``q1``, ``q3``: First & third quartiles (scalars).
4184- - ``whislo``, ``whishi``: Lower & upper whisker positions (scalars).
4182+ - ``med``: Median (scalar).
4183+ - ``q1``, ``q3``: First & third quartiles (scalars).
4184+ - ``whislo``, ``whishi``: Lower & upper whisker positions (scalars).
41854185
4186- Optional keys are:
4186+ Optional keys are:
41874187
4188- - ``mean``: Mean (scalar). Needed if ``showmeans=True``.
4189- - ``fliers``: Data beyond the whiskers (array-like).
4190- Needed if ``showfliers=True``.
4191- - ``cilo``, ``cihi``: Lower & upper confidence intervals
4192- about the median. Needed if ``shownotches=True``.
4193- - ``label``: Name of the dataset (str). If available,
4194- this will be used a tick label for the boxplot
4188+ - ``mean``: Mean (scalar). Needed if ``showmeans=True``.
4189+ - ``fliers``: Data beyond the whiskers (array-like).
4190+ Needed if ``showfliers=True``.
4191+ - ``cilo``, ``cihi``: Lower & upper confidence intervals
4192+ about the median. Needed if ``shownotches=True``.
4193+ - ``label``: Name of the dataset (str). If available,
4194+ this will be used a tick label for the boxplot
41954195
41964196 positions : array-like, default: [1, 2, ..., n]
4197- The positions of the boxes. The ticks and limits
4198- are automatically set to match the positions.
4197+ The positions of the boxes. The ticks and limits
4198+ are automatically set to match the positions.
41994199
42004200 widths : float or array-like, default: None
4201- The widths of the boxes. The default is
4202- ``clip(0.15*(distance between extreme positions), 0.15, 0.5)``.
4201+ The widths of the boxes. The default is
4202+ ``clip(0.15*(distance between extreme positions), 0.15, 0.5)``.
42034203
42044204 capwidths : float or array-like, default: None
4205- Either a scalar or a vector and sets the width of each cap.
4206- The default is ``0.5*(width of the box)``, see *widths*.
4205+ Either a scalar or a vector and sets the width of each cap.
4206+ The default is ``0.5*(width of the box)``, see *widths*.
42074207
42084208 vert : bool, default: True
4209- If `True` (default), makes the boxes vertical.
4210- If `False`, makes horizontal boxes.
4209+ If `True` (default), makes the boxes vertical.
4210+ If `False`, makes horizontal boxes.
42114211
42124212 patch_artist : bool, default: False
4213- If `False` produces boxes with the `.Line2D` artist.
4214- If `True` produces boxes with the `~matplotlib.patches.Patch` artist.
4213+ If `False` produces boxes with the `.Line2D` artist.
4214+ If `True` produces boxes with the `~matplotlib.patches.Patch` artist.
42154215
42164216 shownotches, showmeans, showcaps, showbox, showfliers : bool
4217- Whether to draw the CI notches, the mean value (both default to
4218- False), the caps, the box, and the fliers (all three default to
4219- True).
4217+ Whether to draw the CI notches, the mean value (both default to
4218+ False), the caps, the box, and the fliers (all three default to
4219+ True).
42204220
42214221 boxprops, whiskerprops, capprops, flierprops, medianprops, meanprops :\
42224222 dict, optional
4223- Artist properties for the boxes, whiskers, caps, fliers, medians, and
4224- means.
4223+ Artist properties for the boxes, whiskers, caps, fliers, medians, and
4224+ means.
42254225
42264226 meanline : bool, default: False
4227- If `True` (and *showmeans* is `True`), will try to render the mean
4228- as a line spanning the full width of the box according to
4229- *meanprops*. Not recommended if *shownotches* is also True.
4230- Otherwise, means will be shown as points.
4227+ If `True` (and *showmeans* is `True`), will try to render the mean
4228+ as a line spanning the full width of the box according to
4229+ *meanprops*. Not recommended if *shownotches* is also True.
4230+ Otherwise, means will be shown as points.
42314231
42324232 manage_ticks : bool, default: True
4233- If True, the tick locations and labels will be adjusted to match the
4234- boxplot positions.
4233+ If True, the tick locations and labels will be adjusted to match the
4234+ boxplot positions.
42354235
42364236 label : str or list of str, optional
42374237 Legend labels. Use a single string when all boxes have the same style and
@@ -4248,22 +4248,22 @@ def bxp(self, bxpstats, positions=None, widths=None, vert=True,
42484248 .. versionadded:: 3.9
42494249
42504250 zorder : float, default: ``Line2D.zorder = 2``
4251- The zorder of the resulting boxplot.
4251+ The zorder of the resulting boxplot.
42524252
42534253 Returns
42544254 -------
42554255 dict
4256- A dictionary mapping each component of the boxplot to a list
4257- of the `.Line2D` instances created. That dictionary has the
4258- following keys (assuming vertical boxplots):
4259-
4260- - ``boxes``: main bodies of the boxplot showing the quartiles, and
4261- the median's confidence intervals if enabled.
4262- - ``medians``: horizontal lines at the median of each box.
4263- - ``whiskers``: vertical lines up to the last non-outlier data.
4264- - ``caps``: horizontal lines at the ends of the whiskers.
4265- - ``fliers``: points representing data beyond the whiskers (fliers).
4266- - ``means``: points or lines representing the means.
4256+ A dictionary mapping each component of the boxplot to a list
4257+ of the `.Line2D` instances created. That dictionary has the
4258+ following keys (assuming vertical boxplots):
4259+
4260+ - ``boxes``: main bodies of the boxplot showing the quartiles, and
4261+ the median's confidence intervals if enabled.
4262+ - ``medians``: horizontal lines at the median of each box.
4263+ - ``whiskers``: vertical lines up to the last non-outlier data.
4264+ - ``caps``: horizontal lines at the ends of the whiskers.
4265+ - ``fliers``: points representing data beyond the whiskers (fliers).
4266+ - ``means``: points or lines representing the means.
42674267
42684268 See Also
42694269 --------
@@ -6468,7 +6468,7 @@ def pcolorfast(self, *args, alpha=None, norm=None, cmap=None, vmin=None,
64686468
64696469 Call signature::
64706470
6471- ax.pcolorfast([X, Y], C, /, **kwargs)
6471+ ax.pcolorfast([X, Y], C, /, **kwargs)
64726472
64736473 This method is similar to `~.Axes.pcolor` and `~.Axes.pcolormesh`.
64746474 It's designed to provide the fastest pcolor-type plotting with the
@@ -6478,12 +6478,12 @@ def pcolorfast(self, *args, alpha=None, norm=None, cmap=None, vmin=None,
64786478
64796479 .. warning::
64806480
6481- This method is experimental. Compared to `~.Axes.pcolor` or
6482- `~.Axes.pcolormesh` it has some limitations:
6481+ This method is experimental. Compared to `~.Axes.pcolor` or
6482+ `~.Axes.pcolormesh` it has some limitations:
64836483
6484- - It supports only flat shading (no outlines)
6485- - It lacks support for log scaling of the axes.
6486- - It does not have a pyplot wrapper.
6484+ - It supports only flat shading (no outlines)
6485+ - It lacks support for log scaling of the axes.
6486+ - It does not have a pyplot wrapper.
64876487
64886488 Parameters
64896489 ----------
@@ -8316,44 +8316,44 @@ def violinplot(self, dataset, positions=None, vert=True, widths=0.5,
83168316 Parameters
83178317 ----------
83188318 dataset : Array or a sequence of vectors.
8319- The input data.
8319+ The input data.
83208320
83218321 positions : array-like, default: [1, 2, ..., n]
8322- The positions of the violins; i.e. coordinates on the x-axis for
8323- vertical violins (or y-axis for horizontal violins).
8322+ The positions of the violins; i.e. coordinates on the x-axis for
8323+ vertical violins (or y-axis for horizontal violins).
83248324
83258325 vert : bool, default: True.
8326- If true, creates a vertical violin plot.
8327- Otherwise, creates a horizontal violin plot.
8326+ If true, creates a vertical violin plot.
8327+ Otherwise, creates a horizontal violin plot.
83288328
83298329 widths : float or array-like, default: 0.5
8330- The maximum width of each violin in units of the *positions* axis.
8331- The default is 0.5, which is half the available space when using default
8332- *positions*.
8330+ The maximum width of each violin in units of the *positions* axis.
8331+ The default is 0.5, which is half the available space when using default
8332+ *positions*.
83338333
83348334 showmeans : bool, default: False
8335- Whether to show the mean with a line.
8335+ Whether to show the mean with a line.
83368336
83378337 showextrema : bool, default: True
8338- Whether to show extrema with a line.
8338+ Whether to show extrema with a line.
83398339
83408340 showmedians : bool, default: False
8341- Whether to show the median with a line.
8341+ Whether to show the median with a line.
83428342
83438343 quantiles : array-like, default: None
8344- If not None, set a list of floats in interval [0, 1] for each violin,
8345- which stands for the quantiles that will be rendered for that
8346- violin.
8344+ If not None, set a list of floats in interval [0, 1] for each violin,
8345+ which stands for the quantiles that will be rendered for that
8346+ violin.
83478347
83488348 points : int, default: 100
8349- The number of points to evaluate each of the gaussian kernel density
8350- estimations at.
8349+ The number of points to evaluate each of the gaussian kernel density
8350+ estimations at.
83518351
83528352 bw_method : {'scott', 'silverman'} or float or callable, default: 'scott'
8353- The method used to calculate the estimator bandwidth. If a
8354- float, this will be used directly as `kde.factor`. If a
8355- callable, it should take a `matplotlib.mlab.GaussianKDE` instance as
8356- its only parameter and return a float.
8353+ The method used to calculate the estimator bandwidth. If a
8354+ float, this will be used directly as `kde.factor`. If a
8355+ callable, it should take a `matplotlib.mlab.GaussianKDE` instance as
8356+ its only parameter and return a float.
83578357
83588358 side : {'both', 'low', 'high'}, default: 'both'
83598359 'both' plots standard violins. 'low'/'high' only
@@ -8365,31 +8365,31 @@ def violinplot(self, dataset, positions=None, vert=True, widths=0.5,
83658365 Returns
83668366 -------
83678367 dict
8368- A dictionary mapping each component of the violinplot to a
8369- list of the corresponding collection instances created. The
8370- dictionary has the following keys:
8368+ A dictionary mapping each component of the violinplot to a
8369+ list of the corresponding collection instances created. The
8370+ dictionary has the following keys:
83718371
8372- - ``bodies``: A list of the `~.collections.PolyCollection`
8373- instances containing the filled area of each violin.
8372+ - ``bodies``: A list of the `~.collections.PolyCollection`
8373+ instances containing the filled area of each violin.
83748374
8375- - ``cmeans``: A `~.collections.LineCollection` instance that marks
8376- the mean values of each of the violin's distribution.
8375+ - ``cmeans``: A `~.collections.LineCollection` instance that marks
8376+ the mean values of each of the violin's distribution.
83778377
8378- - ``cmins``: A `~.collections.LineCollection` instance that marks
8379- the bottom of each violin's distribution.
8378+ - ``cmins``: A `~.collections.LineCollection` instance that marks
8379+ the bottom of each violin's distribution.
83808380
8381- - ``cmaxes``: A `~.collections.LineCollection` instance that marks
8382- the top of each violin's distribution.
8381+ - ``cmaxes``: A `~.collections.LineCollection` instance that marks
8382+ the top of each violin's distribution.
83838383
8384- - ``cbars``: A `~.collections.LineCollection` instance that marks
8385- the centers of each violin's distribution.
8384+ - ``cbars``: A `~.collections.LineCollection` instance that marks
8385+ the centers of each violin's distribution.
83868386
8387- - ``cmedians``: A `~.collections.LineCollection` instance that
8388- marks the median values of each of the violin's distribution.
8387+ - ``cmedians``: A `~.collections.LineCollection` instance that
8388+ marks the median values of each of the violin's distribution.
83898389
8390- - ``cquantiles``: A `~.collections.LineCollection` instance created
8391- to identify the quantile values of each of the violin's
8392- distribution.
8390+ - ``cquantiles``: A `~.collections.LineCollection` instance created
8391+ to identify the quantile values of each of the violin's
8392+ distribution.
83938393
83948394 See Also
83958395 --------
@@ -8424,50 +8424,50 @@ def violin(self, vpstats, positions=None, vert=True, widths=0.5,
84248424 Parameters
84258425 ----------
84268426 vpstats : list of dicts
8427- A list of dictionaries containing stats for each violin plot.
8428- Required keys are:
8427+ A list of dictionaries containing stats for each violin plot.
8428+ Required keys are:
84298429
8430- - ``coords``: A list of scalars containing the coordinates that
8431- the violin's kernel density estimate were evaluated at.
8430+ - ``coords``: A list of scalars containing the coordinates that
8431+ the violin's kernel density estimate were evaluated at.
84328432
8433- - ``vals``: A list of scalars containing the values of the
8434- kernel density estimate at each of the coordinates given
8435- in *coords*.
8433+ - ``vals``: A list of scalars containing the values of the
8434+ kernel density estimate at each of the coordinates given
8435+ in *coords*.
84368436
8437- - ``mean``: The mean value for this violin's dataset.
8437+ - ``mean``: The mean value for this violin's dataset.
84388438
8439- - ``median``: The median value for this violin's dataset.
8439+ - ``median``: The median value for this violin's dataset.
84408440
8441- - ``min``: The minimum value for this violin's dataset.
8441+ - ``min``: The minimum value for this violin's dataset.
84428442
8443- - ``max``: The maximum value for this violin's dataset.
8443+ - ``max``: The maximum value for this violin's dataset.
84448444
8445- Optional keys are:
8445+ Optional keys are:
84468446
8447- - ``quantiles``: A list of scalars containing the quantile values
8448- for this violin's dataset.
8447+ - ``quantiles``: A list of scalars containing the quantile values
8448+ for this violin's dataset.
84498449
84508450 positions : array-like, default: [1, 2, ..., n]
8451- The positions of the violins; i.e. coordinates on the x-axis for
8452- vertical violins (or y-axis for horizontal violins).
8451+ The positions of the violins; i.e. coordinates on the x-axis for
8452+ vertical violins (or y-axis for horizontal violins).
84538453
84548454 vert : bool, default: True.
8455- If true, plots the violins vertically.
8456- Otherwise, plots the violins horizontally.
8455+ If true, plots the violins vertically.
8456+ Otherwise, plots the violins horizontally.
84578457
84588458 widths : float or array-like, default: 0.5
8459- The maximum width of each violin in units of the *positions* axis.
8460- The default is 0.5, which is half available space when using default
8461- *positions*.
8459+ The maximum width of each violin in units of the *positions* axis.
8460+ The default is 0.5, which is half available space when using default
8461+ *positions*.
84628462
84638463 showmeans : bool, default: False
8464- Whether to show the mean with a line.
8464+ Whether to show the mean with a line.
84658465
84668466 showextrema : bool, default: True
8467- Whether to show extrema with a line.
8467+ Whether to show extrema with a line.
84688468
84698469 showmedians : bool, default: False
8470- Whether to show the median with a line.
8470+ Whether to show the median with a line.
84718471
84728472 side : {'both', 'low', 'high'}, default: 'both'
84738473 'both' plots standard violins. 'low'/'high' only
@@ -8476,31 +8476,31 @@ def violin(self, vpstats, positions=None, vert=True, widths=0.5,
84768476 Returns
84778477 -------
84788478 dict
8479- A dictionary mapping each component of the violinplot to a
8480- list of the corresponding collection instances created. The
8481- dictionary has the following keys:
8479+ A dictionary mapping each component of the violinplot to a
8480+ list of the corresponding collection instances created. The
8481+ dictionary has the following keys:
84828482
8483- - ``bodies``: A list of the `~.collections.PolyCollection`
8484- instances containing the filled area of each violin.
8483+ - ``bodies``: A list of the `~.collections.PolyCollection`
8484+ instances containing the filled area of each violin.
84858485
8486- - ``cmeans``: A `~.collections.LineCollection` instance that marks
8487- the mean values of each of the violin's distribution.
8486+ - ``cmeans``: A `~.collections.LineCollection` instance that marks
8487+ the mean values of each of the violin's distribution.
84888488
8489- - ``cmins``: A `~.collections.LineCollection` instance that marks
8490- the bottom of each violin's distribution.
8489+ - ``cmins``: A `~.collections.LineCollection` instance that marks
8490+ the bottom of each violin's distribution.
84918491
8492- - ``cmaxes``: A `~.collections.LineCollection` instance that marks
8493- the top of each violin's distribution.
8492+ - ``cmaxes``: A `~.collections.LineCollection` instance that marks
8493+ the top of each violin's distribution.
84948494
8495- - ``cbars``: A `~.collections.LineCollection` instance that marks
8496- the centers of each violin's distribution.
8495+ - ``cbars``: A `~.collections.LineCollection` instance that marks
8496+ the centers of each violin's distribution.
84978497
8498- - ``cmedians``: A `~.collections.LineCollection` instance that
8499- marks the median values of each of the violin's distribution.
8498+ - ``cmedians``: A `~.collections.LineCollection` instance that
8499+ marks the median values of each of the violin's distribution.
85008500
8501- - ``cquantiles``: A `~.collections.LineCollection` instance created
8502- to identify the quantiles values of each of the violin's
8503- distribution.
8501+ - ``cquantiles``: A `~.collections.LineCollection` instance created
8502+ to identify the quantiles values of each of the violin's
8503+ distribution.
85048504
85058505 See Also
85068506 --------
0 commit comments