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

Skip to content

Commit a6f4509

Browse files
committed
Small docstring fixes
1 parent 70addde commit a6f4509

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/matplotlib/colors.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1249,17 +1249,17 @@ def __init__(self, boundaries, ncolors, clip=False):
12491249
"""
12501250
Parameters
12511251
----------
1252-
boundaries : sequence
1252+
boundaries : array-like
12531253
Monotonically increasing sequence of boundaries
12541254
ncolors : int
12551255
Number of colors in the colormap to be used
12561256
clip : bool, optional
1257-
If *clip* is ``True``, out of range values are mapped to 0 if they
1258-
are below ``boundaries[0]`` or mapped to *ncolors* - 1 if they are
1257+
If clip is ``True``, out of range values are mapped to 0 if they
1258+
are below ``boundaries[0]`` or mapped to ncolors - 1 if they are
12591259
above ``boundaries[-1]``.
12601260
1261-
If *clip* is ``False``, out of range values are mapped to -1 if
1262-
they are below ``boundaries[0]`` or mapped to *ncolors* if they are
1261+
If clip is ``False``, out of range values are mapped to -1 if
1262+
they are below ``boundaries[0]`` or mapped to ncolors if they are
12631263
above ``boundaries[-1]``. These are then converted to valid indices
12641264
by :meth:`Colormap.__call__`.
12651265

0 commit comments

Comments
 (0)