@@ -4664,41 +4664,41 @@ def barbs(self, *args, **kw):
4664
4664
positional_parameter_names = ["x" , "y" , "c" ])
4665
4665
@docstring .dedent_interpd
4666
4666
def fill (self , * args , ** kwargs ):
4667
- """
4668
- Plot filled polygons.
4669
-
4670
- Call signature::
4671
-
4672
- fill(*args, **kwargs)
4673
-
4674
- *args* is a variable length argument, allowing for multiple
4675
- *x*, *y* pairs with an optional color format string; see
4676
- :func:`~matplotlib.pyplot.plot` for details on the argument
4677
- parsing. For example, to plot a polygon with vertices at *x*,
4678
- *y* in blue.::
4679
-
4680
- ax.fill(x,y, 'b' )
4681
-
4682
- An arbitrary number of *x*, *y*, *color* groups can be specified::
4683
-
4684
- ax.fill(x1, y1, 'g', x2, y2, 'r')
4685
-
4686
- Return value is a list of :class:`~matplotlib.patches.Patch`
4667
+ """Plot filled polygons.
4668
+
4669
+ Parameters
4670
+ ----------
4671
+ args : a variable length argument, allowing for multiple
4672
+ *x*, *y* pairs with an optional color format string; see
4673
+ :func:`~matplotlib.pyplot.plot` for details on the argument
4674
+ parsing. For example, to plot a polygon with vertices at *x*,
4675
+ *y* in blue.::
4676
+ ax.fill(x,y, 'b' )
4677
+ An arbitrary number of *x*, *y*, *color* groups can be specified::
4678
+ ax.fill(x1, y1, 'g', x2, y2, 'r')
4679
+
4680
+ kwargs : The *closed* kwarg will close the polygon when *True* (default).
4681
+ kwargs control the :class:`~matplotlib.patches.Polygon` properties:
4682
+ %(Polygon)s
4683
+
4684
+
4685
+ Return
4686
+ ------
4687
+ Return value is a list of :class:`~matplotlib.patches.Patch`
4687
4688
instances that were added.
4688
4689
4690
+
4691
+ Notes
4692
+ -----
4689
4693
The same color strings that :func:`~matplotlib.pyplot.plot`
4690
4694
supports are supported by the fill format string.
4691
4695
4692
4696
If you would like to fill below a curve, e.g., shade a region
4693
4697
between 0 and *y* along *x*, use :meth:`fill_between`
4694
4698
4695
- The *closed* kwarg will close the polygon when *True* (default).
4696
-
4697
- kwargs control the :class:`~matplotlib.patches.Polygon` properties:
4698
-
4699
- %(Polygon)s
4700
-
4701
- **Example:**
4699
+
4700
+ Example
4701
+ -------
4702
4702
4703
4703
.. plot:: mpl_examples/lines_bars_and_markers/fill_demo.py
4704
4704
@@ -4715,6 +4715,8 @@ def fill(self, *args, **kwargs):
4715
4715
self .autoscale_view ()
4716
4716
return patches
4717
4717
4718
+
4719
+
4718
4720
@_preprocess_data (replace_names = ["x" , "y1" , "y2" , "where" ],
4719
4721
label_namer = None )
4720
4722
@docstring .dedent_interpd
0 commit comments