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

Skip to content

Commit fffd58e

Browse files
committed
DOC : first pass at numpydoc-ifying fill_between
Changes to docstring to attempt to conform to numpydoc format.
1 parent cefab28 commit fffd58e

File tree

1 file changed

+20
-11
lines changed

1 file changed

+20
-11
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4440,37 +4440,46 @@ def fill_between(self, x, y1, y2=0, where=None, interpolate=False,
44404440
filling the regions between *y1* and *y2* where
44414441
``where==True``
44424442
4443-
*x* :
4443+
Parameters
4444+
----------
4445+
x : array
44444446
An N-length array of the x data
44454447
4446-
*y1* :
4448+
y1 : array
44474449
An N-length array (or scalar) of the y data
44484450
4449-
*y2* :
4451+
y2 : array
44504452
An N-length array (or scalar) of the y data
44514453
4452-
*where* :
4453-
If *None*, default to fill between everywhere. If not *None*,
4454+
where : array, optional
4455+
If `None`, default to fill between everywhere. If not `None`,
44544456
it is an N-length numpy boolean array and the fill will
44554457
only happen over the regions where ``where==True``.
44564458
4457-
*interpolate* :
4458-
If *True*, interpolate between the two lines to find the
4459+
interpolate : bool, optional
4460+
If `True`, interpolate between the two lines to find the
44594461
precise point of intersection. Otherwise, the start and
44604462
end points of the filled region will only occur on explicit
44614463
values in the *x* array.
44624464
4463-
*kwargs* :
4464-
Keyword args passed on to the
4465-
:class:`~matplotlib.collections.PolyCollection`.
4465+
4466+
Note
4467+
----
4468+
4469+
Additional Keyword args passed on to the
4470+
:class:`~matplotlib.collections.PolyCollection`.
44664471
44674472
kwargs control the :class:`~matplotlib.patches.Polygon` properties:
44684473
44694474
%(PolyCollection)s
44704475
4476+
Examples
4477+
--------
4478+
44714479
.. plot:: mpl_examples/pylab_examples/fill_between_demo.py
44724480
4473-
.. seealso::
4481+
See Also
4482+
--------
44744483
44754484
:meth:`fill_betweenx`
44764485
for filling between two sets of x-values

0 commit comments

Comments
 (0)