@@ -4695,34 +4695,35 @@ def fill(self, *args, **kwargs):
4695
4695
4696
4696
Parameters
4697
4697
----------
4698
- args : a variable length argument
4699
- It allowing for multiple
4700
- *x*, *y* pairs with an optional color format string; see
4701
- :func:`~matplotlib.pyplot.plot` for details on the argument
4702
- parsing. For example, each of the following is legal::
4698
+ args : sequence of x, y, [color]
4699
+ Each polygon is defined by the lists of *x* and *y* positions of
4700
+ its nodes, optionally followed by by a *color* specifier. See
4701
+ :mod:`matplotlib.colors` for supported color specifiers. The
4702
+ standard color cycle is used for polygons without a color
4703
+ specifier.
4703
4704
4704
- ax.fill(x, y)
4705
- ax.fill(x, y, "b")
4706
- ax.fill(x, y, "b", x, y, "r")
4705
+ You can plot multiple polygons by providing multiple *x*, *y*,
4706
+ *[color]* groups.
4707
4707
4708
- An arbitrary number of *x*, *y*, *color* groups can be specified::
4709
- ax.fill(x1, y1, 'g', x2, y2, 'r')
4708
+ For example, each of the following is legal::
4709
+
4710
+ ax.fill(x, y) # a polygon with default color
4711
+ ax.fill(x, y, "b") # a blue polygon
4712
+ ax.fill(x, y, x2, y2) # two polygons
4713
+ ax.fill(x, y, "b", x2, y2, "r") # a blue and a red polygon
4710
4714
4711
4715
Returns
4712
4716
-------
4713
- a list of :class:`~matplotlib.patches.Patch `
4717
+ a list of :class:`~matplotlib.patches.Polygon `
4714
4718
4715
4719
Other Parameters
4716
4720
----------------
4717
4721
**kwargs : :class:`~matplotlib.patches.Polygon` properties
4718
4722
4719
4723
Notes
4720
4724
-----
4721
- The same color strings that :func:`~matplotlib.pyplot.plot`
4722
- supports are supported by the fill format string.
4723
-
4724
- If you would like to fill below a curve, e.g., shade a region
4725
- between 0 and *y* along *x*, use :meth:`fill_between`
4725
+ Use :meth:`fill_between` if you would like to fill the region between
4726
+ two curves.
4726
4727
4727
4728
4728
4729
"""
0 commit comments