Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dc25bd7

Browse files
committed
Don't add horizontal padding for overline -- submitted by Marshall Ward
svn path=/trunk/matplotlib/; revision=8807
1 parent 4711427 commit dc25bd7

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

lib/matplotlib/mathtext.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2863,13 +2863,11 @@ def overline(self, s, loc, toks):
28632863
height = body.height - body.shift_amount + thickness * 3.0
28642864
depth = body.depth + body.shift_amount
28652865

2866-
# Put a little extra space to the left and right of the body
2867-
padded_body = Hlist([Hbox(thickness * 2.0),
2868-
body,
2869-
Hbox(thickness * 2.0)])
2866+
# Place overline above body
28702867
rightside = Vlist([Hrule(state),
28712868
Fill(),
2872-
padded_body])
2869+
Hlist([body])])
2870+
28732871
# Stretch the glue between the hrule and the body
28742872
rightside.vpack(height + (state.fontsize * state.dpi) / (100.0 * 12.0),
28752873
depth, 'exactly')

0 commit comments

Comments
 (0)