Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b576e6 commit 759351eCopy full SHA for 759351e
2 files changed
lib/matplotlib/_mathtext.py
@@ -2059,7 +2059,6 @@ def __init__(self):
2059
p.accentprefixed = Forward()
2060
p.space = Forward()
2061
p.sqrt = Forward()
2062
- p.stackrel = Forward()
2063
p.start_group = Forward()
2064
p.subsuper = Forward()
2065
p.subsuperop = Forward()
@@ -2144,12 +2143,6 @@ def __init__(self):
2144
2143
| Error(r"Expected \dfrac{num}{den}"))
2145
)
2146
2147
- p.stackrel <<= Group(
2148
- Suppress(Literal(r"\stackrel"))
2149
- - ((p.required_group + p.required_group)
2150
- | Error(r"Expected \stackrel{num}{den}"))
2151
- )
2152
-
2153
p.binom <<= Group(
2154
Suppress(Literal(r"\binom"))
2155
- ((p.required_group + p.required_group)
@@ -2206,7 +2199,6 @@ def __init__(self):
2206
2199
| p.group
2207
2200
| p.frac
2208
2201
| p.dfrac
2209
- | p.stackrel
2210
2202
| p.binom
2211
2203
| p.genfrac
2212
2204
| p.sqrt
lib/matplotlib/tests/test_mathtext.py
@@ -218,8 +218,6 @@ def test_fontinfo():
218
(r'$\hspace{foo}$', r'Expected \hspace{n}'),
219
(r'$\frac$', r'Expected \frac{num}{den}'),
220
(r'$\frac{}{}$', r'Expected \frac{num}{den}'),
221
- (r'$\stackrel$', r'Expected \stackrel{num}{den}'),
222
- (r'$\stackrel{}{}$', r'Expected \stackrel{num}{den}'),
223
(r'$\binom$', r'Expected \binom{num}{den}'),
224
(r'$\binom{}{}$', r'Expected \binom{num}{den}'),
225
(r'$\genfrac$',
@@ -242,8 +240,6 @@ def test_fontinfo():
242
240
'hspace with invalid value',
243
241
'frac without parameters',
244
'frac with empty parameters',
245
- 'stackrel without parameters',
246
- 'stackrel with empty parameters',
247
'binom without parameters',
248
'binom with empty parameters',
249
'genfrac without parameters',
0 commit comments