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

Function _get_dash_patterns

lib/matplotlib/lines.py:63–74  ·  view source on GitHub ↗

Convert linestyle or sequence of linestyles to list of dash patterns.

(styles)

Source from the content-addressed store, hash-verified

61
62
63def _get_dash_patterns(styles):
64 """Convert linestyle or sequence of linestyles to list of dash patterns."""
65 try:
66 patterns = [_get_dash_pattern(styles)]
67 except ValueError:
68 try:
69 patterns = [_get_dash_pattern(x) for x in styles]
70 except ValueError as err:
71 emsg = f'Do not know how to convert {styles!r} to dashes'
72 raise ValueError(emsg) from err
73
74 return patterns
75
76
77def _get_inverse_dash_pattern(offset, dashes):

Callers

nothing calls this directly

Calls 1

_get_dash_patternFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…