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

Method text

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

Source from the content-addressed store, hash-verified

2346 float_literal = staticmethod(pyparsing_common.convert_to_float)
2347
2348 def text(self, toks: ParseResults) -> T.Any:
2349 self.push_state()
2350 state = self.get_state()
2351 state.font = 'rm'
2352 hlist = Hlist([Char(c, state) for c in toks[1]])
2353 self.pop_state()
2354 return [hlist]
2355
2356 def _make_space(self, percentage: float) -> Kern:
2357 # In TeX, an em (the unit usually used to measure horizontal lengths)

Callers

nothing calls this directly

Calls 5

push_stateMethod · 0.95
get_stateMethod · 0.95
pop_stateMethod · 0.95
HlistClass · 0.85
CharClass · 0.85

Tested by

no test coverage detected