Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5524b35

Browse filesBrowse files
committed
Merge pull request #7268 from NelleV/Zohreh_master
DOC Numpydoc documentation for def fill()
1 parent 9dc6928 commit 5524b35
Copy full SHA for 5524b35

File tree

Expand file treeCollapse file tree

1 file changed

+24
-24
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+24
-24
lines changed

‎lib/matplotlib/axes/_axes.py

Copy file name to clipboardExpand all lines: lib/matplotlib/axes/_axes.py
+24-24Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -4650,44 +4650,44 @@ def barbs(self, *args, **kw):
46504650
positional_parameter_names=["x", "y", "c"])
46514651
@docstring.dedent_interpd
46524652
def fill(self, *args, **kwargs):
4653-
"""
4654-
Plot filled polygons.
4655-
4656-
Call signature::
4653+
"""Plot filled polygons.
46574654
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::
46654662
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")
46674666
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')
46694669
4670-
ax.fill(x1, y1, 'g', x2, y2, 'r')
4670+
Returns
4671+
-------
4672+
a list of :class:`~matplotlib.patches.Patch`
46714673
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
46744677
4678+
Notes
4679+
-----
46754680
The same color strings that :func:`~matplotlib.pyplot.plot`
46764681
supports are supported by the fill format string.
46774682
46784683
If you would like to fill below a curve, e.g., shade a region
46794684
between 0 and *y* along *x*, use :meth:`fill_between`
46804685
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+
--------
46894688
.. plot:: mpl_examples/lines_bars_and_markers/fill_demo.py
46904689
4690+
46914691
"""
46924692
if not self._hold:
46934693
self.cla()

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.