Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/matplotlib/matplotlib
/ _ensure_inited
Method
_ensure_inited
lib/matplotlib/colors.py:980–982 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
978
raise
NotImplementedError(
"Abstract class only"
)
979
980
def
_ensure_inited(self):
981
if
not self._isinit:
982
self._init()
983
984
def
is_gray(self):
985
""
"Return whether the colormap is grayscale."
""
Callers
8
_get_rgba_and_mask
Method · 0.95
__eq__
Method · 0.95
get_bad
Method · 0.95
get_under
Method · 0.95
get_over
Method · 0.95
is_gray
Method · 0.95
with_alpha
Method · 0.80
monochrome
Method · 0.80
Calls
1
_init
Method · 0.95
Tested by
no test coverage detected