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

Skip to content

Commit 0ccfa3d

Browse files
authored
Merge pull request #9619 from tacaswell/fix_mathtext
FIX: non-existing variable
2 parents 29c7e28 + b7bf4d1 commit 0ccfa3d

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
@@ -2051,6 +2051,7 @@ def __init__(self, c, width, state, always=False, char_class=Char):
20512051
Hlist.__init__(self, [char])
20522052
self.width = char.width
20532053

2054+
20542055
class Ship(object):
20552056
"""
20562057
Once the boxes have been set up, this sends them to output. Since
@@ -2119,11 +2120,11 @@ def hlist_out(self, box):
21192120
if isinf(rule_depth):
21202121
rule_depth = box.depth
21212122
if rule_height > 0 and rule_width > 0:
2122-
self.cur_v = baseline + rule_depth
2123+
self.cur_v = base_line + rule_depth
21232124
p.render(self.cur_h + self.off_h,
21242125
self.cur_v + self.off_v,
21252126
rule_width, rule_height)
2126-
self.cur_v = baseline
2127+
self.cur_v = base_line
21272128
self.cur_h += rule_width
21282129
elif isinstance(p, Glue):
21292130
# node625
@@ -2199,6 +2200,7 @@ def vlist_out(self, box):
21992200
raise RuntimeError("Internal mathtext error: Char node found in vlist")
22002201
self.cur_s -= 1
22012202

2203+
22022204
ship = Ship()
22032205

22042206
##############################################################################

0 commit comments

Comments
 (0)