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

Skip to content

Commit e0c5379

Browse files
committed
Merge pull request #4401 from mdboom/whitespace-mathtext
Fix #4333: Whitespace after sub/super cluster
2 parents 3c95554 + 28216f2 commit e0c5379

37 files changed

+6008
-6187
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Improved spacing in mathtext
2+
````````````````````````````
3+
4+
The extra space that appeared after subscripts and superscripts has
5+
been removed.

lib/matplotlib/mathtext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2738,7 +2738,7 @@ def subsuper(self, s, loc, toks):
27382738
x.shift_amount = shift_down
27392739
else:
27402740
super.shrink()
2741-
x = Hlist([super, Kern(SCRIPT_SPACE * xHeight)])
2741+
x = Hlist([super])
27422742
# x.width += SCRIPT_SPACE * xHeight
27432743
clr = SUP1 * xHeight
27442744
shift_up = max(shift_up, clr)
Binary file not shown.

0 commit comments

Comments
 (0)