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

Skip to content

Commit b56cd10

Browse files
committed
Merged revisions 4499-4505 via svnmerge from
http://matplotlib.svn.sf.net/svnroot/matplotlib/trunk/matplotlib ........ r4504 | jdh2358 | 2007-11-29 14:43:20 -0500 (Thu, 29 Nov 2007) | 1 line minor changes for htdocs ........ r4505 | jdh2358 | 2007-11-29 14:44:49 -0500 (Thu, 29 Nov 2007) | 1 line minor changes for htdocs ........ svn path=/branches/transforms/; revision=4506
1 parent ac09a4c commit b56cd10

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

lib/matplotlib/mathtext.py

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1090,7 +1090,7 @@ def get_underline_thickness(self, font, fontsize, dpi):
10901090
# Typesetting math formulas
10911091
#
10921092
# Many of the docstrings below refer to a numbered "node" in that
1093-
# book, e.g. @123
1093+
# book, e.g. node123
10941094
#
10951095
# Note that (as TeX) y increases downward, unlike many other parts of
10961096
# matplotlib.
@@ -1118,7 +1118,7 @@ class MathTextWarning(Warning):
11181118

11191119
class Node(object):
11201120
"""A node in the TeX box model
1121-
@133
1121+
node133
11221122
"""
11231123
def __init__(self):
11241124
self.size = 0
@@ -1147,7 +1147,7 @@ def render(self, x, y):
11471147

11481148
class Box(Node):
11491149
"""Represents any node with a physical location.
1150-
@135"""
1150+
node135"""
11511151
def __init__(self, width, height, depth):
11521152
Node.__init__(self)
11531153
self.width = width
@@ -1193,7 +1193,7 @@ class Char(Node):
11931193
The metrics must be converted to the TeX way, and the advance (if
11941194
different from width) must be converted into a Kern node when the
11951195
Char is added to its parent Hlist.
1196-
@134"""
1196+
node134"""
11971197
def __init__(self, c, state):
11981198
Node.__init__(self)
11991199
self.c = c
@@ -1284,7 +1284,7 @@ def render(self, x, y):
12841284

12851285
class List(Box):
12861286
"""A list of nodes (either horizontal or vertical).
1287-
@135"""
1287+
node135"""
12881288
def __init__(self, elements):
12891289
Box.__init__(self, 0., 0., 0.)
12901290
self.shift_amount = 0. # An arbitrary offset
@@ -1342,7 +1342,7 @@ def grow(self):
13421342

13431343
class Hlist(List):
13441344
"""A horizontal list of boxes.
1345-
@135"""
1345+
node135"""
13461346
def __init__(self, elements, w=0., m='additional', do_kern=True):
13471347
List.__init__(self, elements)
13481348
if do_kern:
@@ -1385,7 +1385,7 @@ def hpack(self, w=0., m='additional'):
13851385
Thus, hpack(w, exactly) produces a box whose width is exactly w, while
13861386
hpack (w, additional ) yields a box whose width is the natural width
13871387
plus w. The default values produce a box with the natural width.
1388-
@644, @649"""
1388+
node644, node649"""
13891389
# I don't know why these get reset in TeX. Shift_amount is pretty
13901390
# much useless if we do.
13911391
#self.shift_amount = 0.
@@ -1432,7 +1432,7 @@ def hpack(self, w=0., m='additional'):
14321432

14331433
class Vlist(List):
14341434
"""A vertical list of boxes.
1435-
@137"""
1435+
node137"""
14361436
def __init__(self, elements, h=0., m='additional'):
14371437
List.__init__(self, elements)
14381438
self.vpack()
@@ -1449,7 +1449,7 @@ def vpack(self, h=0., m='additional', l=float(inf)):
14491449
Thus, vpack(h, exactly) produces a box whose width is exactly w, while
14501450
vpack(w, additional) yields a box whose width is the natural width
14511451
plus w. The default values produce a box with the natural width.
1452-
@644, @668"""
1452+
node644, node668"""
14531453
# I don't know why these get reset in TeX. Shift_amount is pretty
14541454
# much useless if we do.
14551455
# self.shift_amount = 0.
@@ -1508,7 +1508,7 @@ class Rule(Box):
15081508
rule up to the boundary of the innermost enclosing box. This is called
15091509
a "running dimension." The width is never running in an Hlist; the
15101510
height and depth are never running in a Vlist.
1511-
@138"""
1511+
node138"""
15121512
def __init__(self, width, height, depth, state):
15131513
Box.__init__(self, width, height, depth)
15141514
self.font_output = state.font_output
@@ -1536,7 +1536,7 @@ class Glue(Node):
15361536
GlueSpec class, which is shared between multiple glue objects. (This
15371537
is a memory optimization which probably doesn't matter anymore, but it's
15381538
easier to stick to what TeX does.)
1539-
@149, @152"""
1539+
node149, node152"""
15401540
def __init__(self, glue_type, copy=False):
15411541
Node.__init__(self)
15421542
self.glue_subtype = 'normal'
@@ -1564,7 +1564,7 @@ def grow(self):
15641564
self.glue_spec.width *= GROW_FACTOR
15651565

15661566
class GlueSpec(object):
1567-
"""@150, @151"""
1567+
"""node150, node151"""
15681568
def __init__(self, width=0., stretch=0., stretch_order=0, shrink=0., shrink_order=0):
15691569
self.width = width
15701570
self.stretch = stretch
@@ -1645,7 +1645,7 @@ class Kern(Node):
16451645
better to move them closer together or further apart. A kern node can
16461646
also appear in a vertical list, when its 'width' denotes additional
16471647
spacing in the vertical direction.
1648-
@155"""
1648+
node155"""
16491649
def __init__(self, width):
16501650
Node.__init__(self)
16511651
self.width = width
@@ -1731,7 +1731,7 @@ class Ship(object):
17311731
and vlist_out , which traverse the Hlists and Vlists inside of
17321732
horizontal and vertical boxes. The global variables used in TeX to
17331733
store state as it processes have become member variables here.
1734-
@592."""
1734+
node592."""
17351735
def __call__(self, ox, oy, box):
17361736
self.max_push = 0 # Deepest nesting of push commands so far
17371737
self.cur_s = 0
@@ -1767,7 +1767,7 @@ def hlist_out(self, box):
17671767
elif isinstance(p, Kern):
17681768
self.cur_h += p.width
17691769
elif isinstance(p, List):
1770-
# @623
1770+
# node623
17711771
if len(p.children) == 0:
17721772
self.cur_h += p.width
17731773
else:
@@ -1781,7 +1781,7 @@ def hlist_out(self, box):
17811781
self.cur_h = edge + p.width
17821782
self.cur_v = base_line
17831783
elif isinstance(p, Box):
1784-
# @624
1784+
# node624
17851785
rule_height = p.height
17861786
rule_depth = p.depth
17871787
rule_width = p.width
@@ -1797,7 +1797,7 @@ def hlist_out(self, box):
17971797
self.cur_v = baseline
17981798
self.cur_h += rule_width
17991799
elif isinstance(p, Glue):
1800-
# @625
1800+
# node625
18011801
glue_spec = p.glue_spec
18021802
rule_width = glue_spec.width - cur_g
18031803
if glue_sign != 0: # normal
@@ -2468,7 +2468,7 @@ def subsuperscript(self, s, loc, toks):
24682468
else:
24692469
shift_down = SUBDROP * xHeight
24702470
if super is None:
2471-
# @757
2471+
# node757
24722472
sub.shrink()
24732473
x = Hlist([sub])
24742474
# x.width += SCRIPT_SPACE * xHeight

0 commit comments

Comments
 (0)