Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b33e191

Browse files
ZohrehPythonSchoolNelleV
authored andcommitted
documentation for def fill()
1 parent b34c55d commit b33e191

File tree

1 file changed

+29
-27
lines changed

1 file changed

+29
-27
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 29 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -4664,41 +4664,41 @@ def barbs(self, *args, **kw):
46644664
positional_parameter_names=["x", "y", "c"])
46654665
@docstring.dedent_interpd
46664666
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`
46874688
instances that were added.
46884689
4690+
4691+
Notes
4692+
-----
46894693
The same color strings that :func:`~matplotlib.pyplot.plot`
46904694
supports are supported by the fill format string.
46914695
46924696
If you would like to fill below a curve, e.g., shade a region
46934697
between 0 and *y* along *x*, use :meth:`fill_between`
46944698
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+
-------
47024702
47034703
.. plot:: mpl_examples/lines_bars_and_markers/fill_demo.py
47044704
@@ -4715,6 +4715,8 @@ def fill(self, *args, **kwargs):
47154715
self.autoscale_view()
47164716
return patches
47174717

4718+
4719+
47184720
@_preprocess_data(replace_names=["x", "y1", "y2", "where"],
47194721
label_namer=None)
47204722
@docstring.dedent_interpd

0 commit comments

Comments
 (0)