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

Skip to content

Commit 8ad54f3

Browse files
phobsonOceanWolf
authored andcommitted
fix OffsetNorm docstring to numpydoc spec
1 parent 05c1b76 commit 8ad54f3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/matplotlib/colors.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -978,19 +978,19 @@ def __init__(self, vmin=None, vcenter=None, vmax=None, clip=False):
978978
979979
Parameters
980980
----------
981-
vmin : optional float
981+
vmin : float, optional
982982
The data value that defines ``0.0`` in the normalized data.
983983
Defaults to the min value of the dataset.
984984
985-
vcenter : optional float
985+
vcenter : float, optional
986986
The data value that defines ``0.5`` in the normalized data.
987987
Defaults to halfway between *vmin* and *vmax*.
988988
989-
vmax : option float
989+
vmax : float, optional
990990
The data value that defines ``1.0`` in the normalized data.
991991
Defaults to the the max value of the dataset.
992992
993-
clip : optional bool (default is False)
993+
clip : bool, optional (default is False)
994994
If *clip* is True, values beyond *vmin* and *vmax* will be set
995995
to ``0.0`` or ``1.0``, respectively. Otherwise, values outside
996996
the ``[0.0, 1.0]`` will be returned.

0 commit comments

Comments
 (0)