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

Method non_math

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

Source from the content-addressed store, hash-verified

2335 return [hlist]
2336
2337 def non_math(self, toks: ParseResults) -> T.Any:
2338 s = toks[0].replace(r'\$', '$')
2339 symbols = [Char(c, self.get_state()) for c in s]
2340 hlist = Hlist(symbols)
2341 # We're going into math now, so set font to 'normal'
2342 self.push_state()
2343 self.get_state().font = mpl.rcParams['mathtext.default']
2344 return [hlist]
2345
2346 float_literal = staticmethod(pyparsing_common.convert_to_float)
2347

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected