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 d1d3bf8

Browse filesBrowse files
ZohrehPythonSchoolNelleV
authored andcommitted
FIX fill documentation review comment
1 parent b33e191 commit d1d3bf8
Copy full SHA for d1d3bf8

File tree

Expand file treeCollapse file tree

1 file changed

+17
-14
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+17
-14
lines changed

‎lib/matplotlib/axes/_axes.py

Copy file name to clipboardExpand all lines: lib/matplotlib/axes/_axes.py
+17-14Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4668,25 +4668,28 @@ def fill(self, *args, **kwargs):
46684668
46694669
Parameters
46704670
----------
4671-
args : a variable length argument, allowing for multiple
4671+
args : a variable length argument
4672+
It allowing for multiple
46724673
*x*, *y* pairs with an optional color format string; see
46734674
: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+
46774681
An arbitrary number of *x*, *y*, *color* groups can be specified::
46784682
ax.fill(x1, y1, 'g', x2, y2, 'r')
46794683
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`
46844687
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
46894691
4692+
%(Polygons)
46904693
46914694
Notes
46924695
-----
@@ -4696,12 +4699,12 @@ def fill(self, *args, **kwargs):
46964699
If you would like to fill below a curve, e.g., shade a region
46974700
between 0 and *y* along *x*, use :meth:`fill_between`
46984701
4699-
4702+
47004703
Example
47014704
-------
4702-
47034705
.. plot:: mpl_examples/lines_bars_and_markers/fill_demo.py
47044706
4707+
47054708
"""
47064709
if not self._hold:
47074710
self.cla()

0 commit comments

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