8000 Merge pull request #23187 from oscargus/mathtextfixes · matplotlib/matplotlib@4cdeb44 · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit 4cdeb44

Browse files
authored
Merge pull request #23187 from oscargus/mathtextfixes
Correct docs and use keyword arguments in _mathtext.py
2 parents 1e22895 + dcdff67 commit 4cdeb44

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/matplotlib/_mathtext.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1045,7 +1045,7 @@ def __init__(self, elements, w=0., m='additional', do_kern=True):
10451045
super().__init__(elements)
10461046
if do_kern:
10471047
self.kern()
1048-
self.hpack()
1048+
self.hpack(w=w, m=m)
10491049

10501050
def kern(self):
10511051
"""
@@ -1156,7 +1156,7 @@ class Vlist(List):
11561156

11571157
def __init__(self, elements, h=0., m='additional'):
11581158
super().__init__(elements)
1159-
self.vpack()
1159+
self.vpack(h=h, m=m)
11601160

11611161
def vpack(self, h=0., m='additional', l=np.inf):
11621162
"""
@@ -1168,8 +1168,8 @@ def vpack(self, h=0., m='additional', l=np.inf):
11681168
h : float, default: 0
11691169
A height.
11701170
m : {'exactly', 'additional'}, default: 'additional'
1171-
Whether to produce a box whose height is 'exactly' *w*; or a box
1172-
with the natural height of the contents, plus *w* ('additional').
1171+
Whether to produce a box whose height is 'exactly' *h*; or a box
1172+
with the natural height of the contents, plus *h* ('additional').
11731173
l : float, default: np.inf
11741174
The maximum height.
11751175

0 commit comments

Comments
 (0)
0