@@ -4650,44 +4650,44 @@ def barbs(self, *args, **kw):
4650
4650
positional_parameter_names = ["x" , "y" , "c" ])
4651
4651
@docstring .dedent_interpd
4652
4652
def fill (self , * args , ** kwargs ):
4653
- """
4654
- Plot filled polygons.
4655
-
4656
- Call signature::
4653
+ """Plot filled polygons.
4657
4654
4658
- fill(*args, **kwargs)
4659
-
4660
- * args* is a variable length argument, allowing for multiple
4661
- *x*, *y* pairs with an optional color format string; see
4662
- :func:`~matplotlib.pyplot.plot` for details on the argument
4663
- parsing. For example, to plot a polygon with vertices at *x*,
4664
- *y* in blue. ::
4655
+ Parameters
4656
+ ----------
4657
+ args : a variable length argument
4658
+ It allowing for multiple
4659
+ *x*, *y* pairs with an optional color format string; see
4660
+ :func:`~matplotlib.pyplot. plot` for details on the argument
4661
+ parsing. For example, each of the following is legal ::
4665
4662
4666
- ax.fill(x,y, 'b' )
4663
+ ax.fill(x, y)
4664
+ ax.fill(x, y, "b")
4665
+ ax.fill(x, y, "b", x, y, "r")
4667
4666
4668
- An arbitrary number of *x*, *y*, *color* groups can be specified::
4667
+ An arbitrary number of *x*, *y*, *color* groups can be specified::
4668
+ ax.fill(x1, y1, 'g', x2, y2, 'r')
4669
4669
4670
- ax.fill(x1, y1, 'g', x2, y2, 'r')
4670
+ Returns
4671
+ -------
4672
+ a list of :class:`~matplotlib.patches.Patch`
4671
4673
4672
- Return value is a list of :class:`~matplotlib.patches.Patch`
4673
- instances that were added.
4674
+ Other Parameters
4675
+ ----------------
4676
+ kwargs : :class:`~matplotlib.patches.Polygon` properties
4674
4677
4678
+ Notes
4679
+ -----
4675
4680
The same color strings that :func:`~matplotlib.pyplot.plot`
4676
4681
supports are supported by the fill format string.
4677
4682
4678
4683
If you would like to fill below a curve, e.g., shade a region
4679
4684
between 0 and *y* along *x*, use :meth:`fill_between`
4680
4685
4681
- The *closed* kwarg will close the polygon when *True* (default).
4682
-
4683
- kwargs control the :class:`~matplotlib.patches.Polygon` properties:
4684
-
4685
- %(Polygon)s
4686
-
4687
- **Example:**
4688
-
4686
+ Examples
4687
+ --------
4689
4688
.. plot:: mpl_examples/lines_bars_and_markers/fill_demo.py
4690
4689
4690
+
4691
4691
"""
4692
4692
if not self ._hold :
4693
4693
self .cla ()
0 commit comments