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

Function is_scalar_or_string

lib/matplotlib/cbook.py:593–595  ·  view source on GitHub ↗

Return whether the given object is a scalar or string like.

(val)

Source from the content-addressed store, hash-verified

591
592
593def is_scalar_or_string(val):
594 """Return whether the given object is a scalar or string like."""
595 return isinstance(val, str) or not np.iterable(val)
596
597
598def get_sample_data(fname, asfileobj=True):

Callers 2

delete_masked_pointsFunction · 0.85
_combine_masksFunction · 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…