MCPcopy Create free account
hub / github.com/ColdGrub1384/Pyto / non_math

Method non_math

site-packages/matplotlib/mathtext.py:2583–2590  ·  view source on GitHub ↗
(self, s, loc, toks)

Source from the content-addressed store, hash-verified

2581 return [hlist]
2582
2583 def non_math(self, s, loc, toks):
2584 s = toks[0].replace(r'\$', '$')
2585 symbols = [Char(c, self.get_state(), math=False) for c in s]
2586 hlist = Hlist(symbols)
2587 # We're going into math now, so set font to 'it'
2588 self.push_state()
2589 self.get_state().font = rcParams['mathtext.default']
2590 return [hlist]
2591
2592 def _make_space(self, percentage):
2593 # All spaces are relative to em width

Callers

nothing calls this directly

Calls 5

get_stateMethod · 0.95
push_stateMethod · 0.95
HlistClass · 0.85
CharClass · 0.70
replaceMethod · 0.45

Tested by

no test coverage detected