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

Skip to content

Commit 5c7ddee

Browse files
authored
Merge pull request #7268 from NelleV/Zohreh_master
DOC Numpydoc documentation for def fill()
2 parents e690c95 + cc92ea6 commit 5c7ddee

1 file changed

Lines changed: 24 additions & 24 deletions

File tree

lib/matplotlib/axes/_axes.py

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -4664,44 +4664,44 @@ 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::
4667+
"""Plot filled polygons.
46714668
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.::
4669+
Parameters
4670+
----------
4671+
args : a variable length argument
4672+
It allowing for multiple
4673+
*x*, *y* pairs with an optional color format string; see
4674+
:func:`~matplotlib.pyplot.plot` for details on the argument
4675+
parsing. For example, each of the following is legal::
46794676
4680-
ax.fill(x,y, 'b' )
4677+
ax.fill(x, y)
4678+
ax.fill(x, y, "b")
4679+
ax.fill(x, y, "b", x, y, "r")
46814680
4682-
An arbitrary number of *x*, *y*, *color* groups can be specified::
4681+
An arbitrary number of *x*, *y*, *color* groups can be specified::
4682+
ax.fill(x1, y1, 'g', x2, y2, 'r')
46834683
4684-
ax.fill(x1, y1, 'g', x2, y2, 'r')
4684+
Returns
4685+
-------
4686+
a list of :class:`~matplotlib.patches.Patch`
46854687
4686-
Return value is a list of :class:`~matplotlib.patches.Patch`
4687-
instances that were added.
4688+
Other Parameters
4689+
----------------
4690+
kwargs : :class:`~matplotlib.patches.Polygon` properties
46884691
4692+
Notes
4693+
-----
46894694
The same color strings that :func:`~matplotlib.pyplot.plot`
46904695
supports are supported by the fill format string.
46914696
46924697
If you would like to fill below a curve, e.g., shade a region
46934698
between 0 and *y* along *x*, use :meth:`fill_between`
46944699
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:**
4702-
4700+
Examples
4701+
--------
47034702
.. plot:: mpl_examples/lines_bars_and_markers/fill_demo.py
47044703
4704+
47054705
"""
47064706
if not self._hold:
47074707
self.cla()

0 commit comments

Comments
 (0)