MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / validate_color_or_inherit

Function validate_color_or_inherit

lib/matplotlib/rcsetup.py:328–332  ·  view source on GitHub ↗

Return a valid color arg.

(s)

Source from the content-addressed store, hash-verified

326
327
328def validate_color_or_inherit(s):
329 """Return a valid color arg."""
330 if cbook._str_equal(s, 'inherit'):
331 return s
332 return validate_color(s)
333
334
335def validate_color_or_auto(s):

Callers

nothing calls this directly

Calls 1

validate_colorFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…