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

Skip to content

Commit c7115f0

Browse files
committed
Add missing docstring to is_gray.
1 parent 924aa61 commit c7115f0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/matplotlib/colors.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -677,6 +677,7 @@ def _init(self):
677677
raise NotImplementedError("Abstract class only")
678678

679679
def is_gray(self):
680+
"""Determine if the color map is grayscale."""
680681
if not self._isinit:
681682
self._init()
682683
return (np.all(self._lut[:, 0] == self._lut[:, 1]) and

0 commit comments

Comments
 (0)