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

Function _label_from_arg

lib/matplotlib/__init__.py:1399–1405  ·  view source on GitHub ↗
(y, default_name)

Source from the content-addressed store, hash-verified

1397
1398
1399def _label_from_arg(y, default_name):
1400 try:
1401 return y.name
1402 except AttributeError:
1403 if isinstance(default_name, str):
1404 return default_name
1405 return None
1406
1407
1408def _add_data_doc(docstring, replace_names):

Callers 1

innerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…