@@ -377,14 +377,14 @@ def legend(self, *args, **kwargs):
377377 is shown in the legend and the automatic mechanism described above
378378 is not sufficient.
379379
380- Other Parameters
381- ----------------
382- %(_legend_kw_doc)s
383-
384380 Returns
385381 -------
386382 legend : `~matplotlib.legend.Legend`
387383
384+ Other Parameters
385+ ----------------
386+ %(_legend_kw_doc)s
387+
388388 Notes
389389 -----
390390 Some artists are not supported by this function. See
@@ -1572,6 +1572,11 @@ def plot(self, *args, scalex=True, scaley=True, data=None, **kwargs):
15721572 You may suppress the warning by adding an empty format string
15731573 ``plot('n', 'o', '', data=obj)``.
15741574
1575+ Returns
1576+ -------
1577+ lines
1578+ A list of `.Line2D` objects representing the plotted data.
1579+
15751580 Other Parameters
15761581 ----------------
15771582 scalex, scaley : bool, default: True
@@ -1593,11 +1598,6 @@ def plot(self, *args, scalex=True, scaley=True, data=None, **kwargs):
15931598
15941599 %(_Line2D_docstr)s
15951600
1596- Returns
1597- -------
1598- lines
1599- A list of `.Line2D` objects representing the plotted data.
1600-
16011601 See Also
16021602 --------
16031603 scatter : XY scatter plot with markers of varying size and/or color (
@@ -2623,6 +2623,10 @@ def broken_barh(self, xranges, yrange, **kwargs):
26232623 yrange : (*ymin*, *yheight*)
26242624 The y-position and extend for all the rectangles.
26252625
2626+ Returns
2627+ -------
2628+ collection : `~.collections.BrokenBarHCollection`
2629+
26262630 Other Parameters
26272631 ----------------
26282632 **kwargs : `.BrokenBarHCollection` properties
@@ -2641,10 +2645,6 @@ def broken_barh(self, xranges, yrange, **kwargs):
26412645 Supported keywords:
26422646
26432647 %(BrokenBarHCollection)s
2644-
2645- Returns
2646- -------
2647- collection : `~.collections.BrokenBarHCollection`
26482648 """
26492649 # process the unit information
26502650 if len (xranges ):
@@ -3601,29 +3601,6 @@ def boxplot(self, x, notch=None, sym=None, vert=None, whis=None,
36013601 zorder : scalar, default: None
36023602 Sets the zorder of the boxplot.
36033603
3604- Other Parameters
3605- ----------------
3606- showcaps : bool, default: True
3607- Show the caps on the ends of whiskers.
3608- showbox : bool, default: True
3609- Show the central box.
3610- showfliers : bool, default: True
3611- Show the outliers beyond the caps.
3612- showmeans : bool, default: False
3613- Show the arithmetic means.
3614- capprops : dict, default: None
3615- The style of the caps.
3616- boxprops : dict, default: None
3617- The style of the box.
3618- whiskerprops : dict, default: None
3619- The style of the whiskers.
3620- flierprops : dict, default: None
3621- The style of the fliers.
3622- medianprops : dict, default: None
3623- The style of the median.
3624- meanprops : dict, default: None
3625- The style of the mean.
3626-
36273604 Returns
36283605 -------
36293606 result : dict
@@ -3648,6 +3625,29 @@ def boxplot(self, x, notch=None, sym=None, vert=None, whis=None,
36483625
36493626 - ``means``: points or lines representing the means.
36503627
3628+ Other Parameters
3629+ ----------------
3630+ showcaps : bool, default: True
3631+ Show the caps on the ends of whiskers.
3632+ showbox : bool, default: True
3633+ Show the central box.
3634+ showfliers : bool, default: True
3635+ Show the outliers beyond the caps.
3636+ showmeans : bool, default: False
3637+ Show the arithmetic means.
3638+ capprops : dict, default: None
3639+ The style of the caps.
3640+ boxprops : dict, default: None
3641+ The style of the box.
3642+ whiskerprops : dict, default: None
3643+ The style of the whiskers.
3644+ flierprops : dict, default: None
3645+ The style of the fliers.
3646+ medianprops : dict, default: None
3647+ The style of the median.
3648+ meanprops : dict, default: None
3649+ The style of the mean.
3650+
36513651 """
36523652
36533653 # Missing arguments default to rcParams.
@@ -4550,6 +4550,20 @@ def hexbin(self, x, y, C=None, gridsize=100, bins=None,
45504550
45514551 Order of scalars is (left, right, bottom, top).
45524552
4553+ Returns
4554+ -------
4555+ polycollection : `~matplotlib.collections.PolyCollection`
4556+ A `.PolyCollection` defining the hexagonal bins.
4557+
4558+ - `.PolyCollection.get_offset` contains a Mx2 array containing
4559+ the x, y positions of the M hexagon centers.
4560+ - `.PolyCollection.get_array` contains the values of the M
4561+ hexagons.
4562+
4563+ If *marginals* is *True*, horizontal
4564+ bar and vertical bar (both PolyCollections) will be attached
4565+ to the return collection as attributes *hbar* and *vbar*.
4566+
45534567 Other Parameters
45544568 ----------------
45554569 cmap : str or `~matplotlib.colors.Colormap`, default: :rc:`image.cmap`
@@ -4600,20 +4614,6 @@ def reduce_C_function(C: array) -> float
46004614
46014615 %(PolyCollection)s
46024616
4603- Returns
4604- -------
4605- polycollection : `~matplotlib.collections.PolyCollection`
4606- A `.PolyCollection` defining the hexagonal bins.
4607-
4608- - `.PolyCollection.get_offset` contains a Mx2 array containing
4609- the x, y positions of the M hexagon centers.
4610- - `.PolyCollection.get_array` contains the values of the M
4611- hexagons.
4612-
4613- If *marginals* is *True*, horizontal
4614- bar and vertical bar (both PolyCollections) will be attached
4615- to the return collection as attributes *hbar* and *vbar*.
4616-
46174617 """
46184618 self ._process_unit_info (xdata = x , ydata = y , kwargs = kwargs )
46194619
@@ -5119,6 +5119,11 @@ def _fill_between_x_or_y(
51195119 value ``y[i]``.
51205120 - 'mid': Steps occur half-way between the *x* positions.
51215121
5122+ Returns
5123+ -------
5124+ `.PolyCollection`
5125+ A `.PolyCollection` containing the plotted polygons.
5126+
51225127 Other Parameters
51235128 ----------------
51245129 **kwargs
@@ -5127,11 +5132,6 @@ def _fill_between_x_or_y(
51275132
51285133 %(PolyCollection)s
51295134
5130- Returns
5131- -------
5132- `.PolyCollection`
5133- A `.PolyCollection` containing the plotted polygons.
5134-
51355135 See Also
51365136 --------
51375137 fill_between : Fill between two sets of y-values.
0 commit comments