8000 FIX: non-existing variable by tacaswell · Pull Request #9619 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

FIX: non-existing variable #9619

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 27, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions lib/matplotlib/mathtext.py
Original file line number Diff line number Diff line change
Expand Up @@ -2043,6 +2043,7 @@ def __init__(self, c, width, state, always=False, char_class=Char):
Hlist.__init__(self, [char])
self.width = char.width


class Ship(object):
"""
Once the boxes have been set up, this sends them to output. Since
Expand Down Expand Up @@ -2111,11 +2112,11 @@ def hlist_out(self, box):
if isinf(rule_depth):
rule_depth = box.depth
if rule_height > 0 and rule_width > 0:
self.cur_v = baseline + rule_depth
self.cur_v = base_line + rule_depth
p.render(self.cur_h + self.off_h,
self.cur_v + self.off_v,
rule_width, rule_height)
self.cur_v = baseline
self.cur_v = base_line
self.cur_h += rule_width
elif isinstance(p, Glue):
# node625
Expand Down Expand Up @@ -2191,6 +2192,7 @@ def vlist_out(self, box):
raise RuntimeError("Internal mathtext error: Char node found in vlist")
self.cur_s -= 1


ship = Ship()

##############################################################################
Expand Down
0