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

Method underline

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

Source from the content-addressed store, hash-verified

2949 return [hlist]
2950
2951 def underline(self, toks: ParseResults) -> T.Any:
2952 body = toks["body"]
2953 state = self.get_state()
2954 thickness = state.get_current_underline_thickness()
2955 # Place the underline below `body` (node735).
2956 vlist = Vlist([
2957 Hlist([body]),
2958 Kern(3 * thickness),
2959 Hrule(state, thickness),
2960 ])
2961 delta = vlist.height + vlist.depth + thickness
2962 vlist.height = body.height
2963 vlist.depth = delta - vlist.height
2964 return [Hlist([vlist])]
2965
2966 def _auto_sized_delimiter(self, front: str,
2967 middle: list[Box | Char | str],

Callers

nothing calls this directly

Calls 6

get_stateMethod · 0.95
VlistClass · 0.85
HlistClass · 0.85
KernClass · 0.85
HruleClass · 0.85

Tested by

no test coverage detected