Skip to content

Commit d7feb03

Browse files
authored
Merge pull request #17894 from Carreau/npdoc
DOC: Numpydoc format.
2 parents 4df10ff + ef0e10d commit d7feb03

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

lib/matplotlib/__init__.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -273,9 +273,10 @@ def _get_executable_info(name):
273273
274274
Returns
275275
-------
276-
If the executable is found, a namedtuple with fields ``executable`` (`str`)
277-
and ``version`` (`distutils.version.LooseVersion`, or ``None`` if the
278-
version cannot be determined).
276+
tuple
277+
A namedtuple with fields ``executable`` (`str`) and ``version``
278+
(`distutils.version.LooseVersion`, or ``None`` if the version cannot be
279+
determined).
279280
280281
Raises
281282
------

lib/matplotlib/mlab.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -934,10 +934,10 @@ def cohere(x, y, NFFT=256, Fs=2, detrend=detrend_none, window=window_hanning,
934934
935935
Returns
936936
-------
937-
The return value is the tuple (*Cxy*, *f*), where *f* are the
938-
frequencies of the coherence vector. For cohere, scaling the
939-
individual densities by the sampling frequency has no effect,
940-
since the factors cancel out.
937+
Cxy : 1-D array
938+
The coherence vector.
939+
freqs : 1-D array
940+
The frequencies for the elements in *Cxy*.
941941
942942
See Also
943943
--------

0 commit comments

Comments
 (0)