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

Skip to content

Commit feb1f87

Browse files
bdicetimhoffm
andcommitted
Apply suggestions from code review
Co-authored-by: Tim Hoffmann <[email protected]>
1 parent c6fc989 commit feb1f87

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Get under/over/bad colors of Colormap objects
22
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
33

4-
The `matplotlib.colors.Colormap` object now has methods
4+
`matplotlib.colors.Colormap` now has methods
55
`~colors.Colormap.get_under`, `~colors.Colormap.get_over`,
66
`~colors.Colormap.get_bad` for the colors used for out-of-range and masked
77
values.

lib/matplotlib/colors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -677,7 +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."""
680+
"""Return whether the color map is grayscale."""
681681
if not self._isinit:
682682
self._init()
683683
return (np.all(self._lut[:, 0] == self._lut[:, 1]) and

0 commit comments

Comments
 (0)