@@ -4668,25 +4668,28 @@ def fill(self, *args, **kwargs):
4668
4668
4669
4669
Parameters
4670
4670
----------
4671
- args : a variable length argument, allowing for multiple
4671
+ args : a variable length argument
4672
+ It allowing for multiple
4672
4673
*x*, *y* pairs with an optional color format string; see
4673
4674
: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' )
4675
+ parsing. For example, each of the following is legal::
4676
+
4677
+ ax.fill(x, y)
4678
+ ax.fill(x, y, "b")
4679
+ ax.fill(x, y, "b", x, y, "r")
4680
+
4677
4681
An arbitrary number of *x*, *y*, *color* groups can be specified::
4678
4682
ax.fill(x1, y1, 'g', x2, y2, 'r')
4679
4683
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
+ Returns
4685
+ -------
4686
+ a list of :class:`~matplotlib.patches.Patch`
4684
4687
4685
- Return
4686
- ------
4687
- Return value is a list of :class:`~matplotlib.patches.Patch`
4688
- instances that were added.
4688
+ Other Parameters
4689
+ ----------------
4690
+ kwargs : :class:`~matplotlib.patches.Polygon` properties
4689
4691
4692
+ %(Polygons)
4690
4693
4691
4694
Notes
4692
4695
-----
@@ -4696,12 +4699,12 @@ def fill(self, *args, **kwargs):
4696
4699
If you would like to fill below a curve, e.g., shade a region
4697
4700
between 0 and *y* along *x*, use :meth:`fill_between`
4698
4701
4699
-
4702
+
4700
4703
Example
4701
4704
-------
4702
-
4703
4705
.. plot:: mpl_examples/lines_bars_and_markers/fill_demo.py
4704
4706
4707
+
4705
4708
"""
4706
4709
if not self ._hold :
4707
4710
self .cla ()
0 commit comments