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

Method math

lib/matplotlib/_mathtext.py:2332–2335  ·  view source on GitHub ↗
(self, toks: ParseResults)

Source from the content-addressed store, hash-verified

2330 return self._math_expression.parse_string(toks[0][1:-1], parse_all=True)
2331
2332 def math(self, toks: ParseResults) -> T.Any:
2333 hlist = Hlist(toks.as_list())
2334 self.pop_state()
2335 return [hlist]
2336
2337 def non_math(self, toks: ParseResults) -> T.Any:
2338 s = toks[0].replace(r'\$', '$')

Callers

nothing calls this directly

Calls 3

pop_stateMethod · 0.95
HlistClass · 0.85
as_listMethod · 0.80

Tested by

no test coverage detected