Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent adaab54 commit 960c33cCopy full SHA for 960c33c
1 file changed
lib/matplotlib/colors.py
@@ -501,6 +501,7 @@ def _init():
501
raise NotImplementedError("Abstract class only")
502
503
def is_gray(self):
504
+ if not self._isinit: self._init()
505
return (np.alltrue(self._lut[:,0] == self._lut[:,1])
506
and np.alltrue(self._lut[:,0] == self._lut[:,2]))
507
0 commit comments