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

Skip to content

Commit 09d2e64

Browse files
committed
Minor mathtext bugfixes
svn path=/trunk/matplotlib/; revision=3663
1 parent 246588f commit 09d2e64

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

lib/matplotlib/mathtext.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1031,7 +1031,7 @@ def __repr__(self):
10311031
return '[%s <%d %d %d %d> %s]' % (self.__internal_repr__(),
10321032
self.width, self.height,
10331033
self.depth, self.shift_amount,
1034-
' '.join(self.children))
1034+
' '.join([repr(x) for x in self.children]))
10351035

10361036
def _determine_order(self, totals):
10371037
"""A helper function to determine the highest order of glue
@@ -2104,7 +2104,7 @@ def subsuperscript(self, s, loc, toks):
21042104
# @757
21052105
sub.shrink()
21062106
x = Hlist([sub])
2107-
x.width += SCRIPT_SPACE * xHeight
2107+
# x.width += SCRIPT_SPACE * xHeight
21082108
shift_down = max(shift_down, SUB1)
21092109
clr = x.height - (abs(xHeight * 4.0) / 5.0)
21102110
shift_down = max(shift_down, clr)
@@ -2122,7 +2122,7 @@ def subsuperscript(self, s, loc, toks):
21222122
else: # Both sub and superscript
21232123
sub.shrink()
21242124
y = Hlist([sub])
2125-
y.width += SCRIPT_SPACE * xHeight
2125+
# y.width += SCRIPT_SPACE * xHeight
21262126
shift_down = max(shift_down, SUB1 * xHeight)
21272127
clr = 2.0 * rule_thickness - ((shift_up - x.depth) - (y.height - shift_down))
21282128
if clr > 0.:

0 commit comments

Comments
 (0)