Skip to content

Commit

Permalink
Minor mathtext bugfixes
Browse files Browse the repository at this point in the history
svn path=/trunk/matplotlib/; revision=3663
  • Loading branch information
mdboom committed Aug 2, 2007
1 parent 246588f commit 09d2e64
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/matplotlib/mathtext.py
Original file line number Diff line number Diff line change
Expand Up @@ -1031,7 +1031,7 @@ def __repr__(self):
return '[%s <%d %d %d %d> %s]' % (self.__internal_repr__(),
self.width, self.height,
self.depth, self.shift_amount,
' '.join(self.children))
' '.join([repr(x) for x in self.children]))

def _determine_order(self, totals):
"""A helper function to determine the highest order of glue
Expand Down Expand Up @@ -2104,7 +2104,7 @@ def subsuperscript(self, s, loc, toks):
# @757
sub.shrink()
x = Hlist([sub])
x.width += SCRIPT_SPACE * xHeight
# x.width += SCRIPT_SPACE * xHeight
shift_down = max(shift_down, SUB1)
clr = x.height - (abs(xHeight * 4.0) / 5.0)
shift_down = max(shift_down, clr)
Expand All @@ -2122,7 +2122,7 @@ def subsuperscript(self, s, loc, toks):
else: # Both sub and superscript
sub.shrink()
y = Hlist([sub])
y.width += SCRIPT_SPACE * xHeight
# y.width += SCRIPT_SPACE * xHeight
shift_down = max(shift_down, SUB1 * xHeight)
clr = 2.0 * rule_thickness - ((shift_up - x.depth) - (y.height - shift_down))
if clr > 0.:
Expand Down

0 comments on commit 09d2e64

Please sign in to comment.