Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a297330 commit e034863Copy full SHA for e034863
1 file changed
lib/matplotlib/_mathtext.py
@@ -2957,10 +2957,10 @@ def underline(self, toks: ParseResults) -> T.Any:
2957
Hlist([body]),
2958
Kern(3 * thickness),
2959
Hrule(state, thickness),
2960
- Kern(thickness),
2961
])
2962
- # Make `body` rest on the baseline as it would without the underline.
2963
- vlist.shift_amount = 5 * thickness + body.depth + body.shift_amount
+ delta = vlist.height + vlist.depth + thickness
+ vlist.height = body.height
+ vlist.depth = delta - vlist.height
2964
return [Hlist([vlist])]
2965
2966
def _auto_sized_delimiter(self, front: str,
0 commit comments