@@ -923,10 +923,8 @@ def get_underline_thickness(self, font, fontsize, dpi):
923
923
# Note that (as TeX) y increases downward, unlike many other parts of
924
924
# matplotlib.
925
925
926
- # How much text shrinks when going to the next-smallest level. GROW_FACTOR
927
- # must be the inverse of SHRINK_FACTOR.
926
+ # How much text shrinks when going to the next-smallest level.
928
927
SHRINK_FACTOR = 0.7
929
- GROW_FACTOR = 1 / SHRINK_FACTOR
930
928
# The number of different sizes of chars to use, beyond which they will not
931
929
# get any smaller
932
930
NUM_SIZE_LEVELS = 6
@@ -1059,13 +1057,6 @@ def shrink(self):
1059
1057
"""
1060
1058
self .size += 1
1061
1059
1062
- def grow (self ):
1063
- """
1064
- Grows one level larger. There is no limit to how big
1065
- something can get.
1066
- """
1067
- self .size -= 1
1068
-
1069
1060
def render (self , x , y ):
1070
1061
pass
1071
1062
@@ -1086,12 +1077,6 @@ def shrink(self):
1086
1077
self .height *= SHRINK_FACTOR
1087
1078
self .depth *= SHRINK_FACTOR
1088
1079
1089
- def grow (self ):
1090
- super ().grow ()
1091
- self .width *= GROW_FACTOR
1092
- self .height *= GROW_FACTOR
1093
- self .depth *= GROW_FACTOR
1094
-
1095
1080
def render (self , x1 , y1 , x2 , y2 ):
1096
1081
pass
1097
1082
@@ -1185,13 +1170,6 @@ def shrink(self):
1185
1170
self .height *= SHRINK_FACTOR
1186
1171
self .depth *= SHRINK_FACTOR
1187
1172
1188
- def grow (self ):
1189
- super ().grow ()
1190
- self .fontsize *= GROW_FACTOR
1191
- self .width *= GROW_FACTOR
1192
- self .height *= GROW_FACTOR
1193
- self .depth *= GROW_FACTOR
1194
-
1195
1173
1196
1174
class Accent (Char ):
1197
1175
"""
@@ -1210,10 +1188,6 @@ def shrink(self):
1210
1188
super ().shrink ()
1211
1189
self ._update_metrics ()
1212
1190
1213
- def grow (self ):
1214
- super ().grow ()
1215
- self ._update_metrics ()
1216
-
1217
1191
def render (self , x , y ):
1218
1192
"""
1219
1193
Render the character to the canvas.
@@ -1276,13 +1250,6 @@ def shrink(self):
1276
1250
self .shift_amount *= SHRINK_FACTOR
1277
1251
self .glue_set *= SHRINK_FACTOR
1278
1252
1279
- def grow (self ):
1280
- for child in self .children :
1281
- child .grow ()
1282
- super ().grow ()
1283
- self .shift_amount *= GROW_FACTOR
1284
- self .glue_set *= GROW_FACTOR
1285
-
1286
1253
1287
1254
class Hlist (List ):
1288
1255
"""A horizontal list of boxes."""
@@ -1551,11 +1518,6 @@ def shrink(self):
1551
1518
g = self .glue_spec
1552
1519
self .glue_spec = g ._replace (width = g .width * SHRINK_FACTOR )
1553
1520
1554
- def grow (self ):
1555
- super ().grow ()
1556
- g = self .glue_spec
1557
- self .glue_spec = g ._replace (width = g .width * GROW_FACTOR )
1558
-
1559
1521
1560
1522
class HCentered (Hlist ):
1561
1523
"""
@@ -1603,10 +1565,6 @@ def shrink(self):
1603
1565
if self .size < NUM_SIZE_LEVELS :
1604
1566
self .width *= SHRINK_FACTOR
1605
1567
1606
- def grow (self ):
1607
- super ().grow ()
1608
- self .width *= GROW_FACTOR
1609
-
1610
1568
1611
1569
class SubSuperCluster (Hlist ):
1612
1570
"""
0 commit comments