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

Skip to content

Commit b7bf4d1

Browse files
committed
FIX: non-existing variable
Not sure how to trigger this issue though. Closes #9429
1 parent b0a0a8e commit b7bf4d1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/matplotlib/mathtext.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2043,6 +2043,7 @@ def __init__(self, c, width, state, always=False, char_class=Char):
20432043
Hlist.__init__(self, [char])
20442044
self.width = char.width
20452045

2046+
20462047
class Ship(object):
20472048
"""
20482049
Once the boxes have been set up, this sends them to output. Since
@@ -2111,11 +2112,11 @@ def hlist_out(self, box):
21112112
if isinf(rule_depth):
21122113
rule_depth = box.depth
21132114
if rule_height > 0 and rule_width > 0:
2114-
self.cur_v = baseline + rule_depth
2115+
self.cur_v = base_line + rule_depth
21152116
p.render(self.cur_h + self.off_h,
21162117
self.cur_v + self.off_v,
21172118
rule_width, rule_height)
2118-
self.cur_v = baseline
2119+
self.cur_v = base_line
21192120
self.cur_h += rule_width
21202121
elif isinstance(p, Glue):
21212122
# node625
@@ -2191,6 +2192,7 @@ def vlist_out(self, box):
21912192
raise RuntimeError("Internal mathtext error: Char node found in vlist")
21922193
self.cur_s -= 1
21932194

2195+
21942196
ship = Ship()
21952197

21962198
##############################################################################

0 commit comments

Comments
 (0)