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.
2 parents de22a51 + 6818007 commit d270810Copy full SHA for d270810
4 files changed
doc/api/prev_api_changes/api_changes_3.1.0.rst
@@ -727,7 +727,7 @@ Mathtext changes
727
728
Deprecations
729
~~~~~~~~~~~~
730
-- The ``\stackrel`` mathtext command hsa been deprecated (it behaved differently
+- The ``\stackrel`` mathtext command has been deprecated (it behaved differently
731
from LaTeX's ``\stackrel``. To stack two mathtext expressions, use
732
``\genfrac{left-delim}{right-delim}{fraction-bar-thickness}{}{top}{bottom}``.
733
- The ``\mathcircled`` mathtext command (which is not a real TeX command)
lib/matplotlib/mathtext.py
@@ -2396,7 +2396,6 @@ def __init__(self):
2396
p.accentprefixed = Forward()
2397
p.space = Forward()
2398
p.sqrt = Forward()
2399
- p.stackrel = Forward()
2400
p.start_group = Forward()
2401
p.subsuper = Forward()
2402
p.subsuperop = Forward()
@@ -2481,12 +2480,6 @@ def __init__(self):
2481
2480
| Error(r"Expected \dfrac{num}{den}"))
2482
)
2483
2484
- p.stackrel <<= Group(
2485
- Suppress(Literal(r"\stackrel"))
2486
- - ((p.required_group + p.required_group)
2487
- | Error(r"Expected \stackrel{num}{den}"))
2488
- )
2489
-
2490
p.binom <<= Group(
2491
Suppress(Literal(r"\binom"))
2492
- ((p.required_group + p.required_group)
@@ -2543,7 +2536,6 @@ def __init__(self):
2543
2536
| p.group
2544
2537
| p.frac
2545
2538
| p.dfrac
2546
- | p.stackrel
2547
2539
| p.binom
2548
2540
| p.genfrac
2549
2541
| p.sqrt
lib/matplotlib/tests/test_mathtext.py
@@ -214,8 +214,6 @@ def test_fontinfo():
214
(r'$\hspace{foo}$', r'Expected \hspace{n}'),
215
(r'$\frac$', r'Expected \frac{num}{den}'),
216
(r'$\frac{}{}$', r'Expected \frac{num}{den}'),
217
- (r'$\stackrel$', r'Expected \stackrel{num}{den}'),
218
- (r'$\stackrel{}{}$', r'Expected \stackrel{num}{den}'),
219
(r'$\binom$', r'Expected \binom{num}{den}'),
220
(r'$\binom{}{}$', r'Expected \binom{num}{den}'),
221
(r'$\genfrac$',
@@ -238,8 +236,6 @@ def test_fontinfo():
238
236
'hspace with invalid value',
239
237
'frac without parameters',
240
'frac with empty parameters',
241
- 'stackrel without parameters',
242
- 'stackrel with empty parameters',
243
'binom without parameters',
244
'binom with empty parameters',
245
'genfrac without parameters',
tutorials/text/mathtext.py
@@ -97,7 +97,7 @@
97
98
.. math::
99
100
- \frac{3}{4} \binom{3}{4} \stackrel{}{}{0}{}{3}{4}
+ \frac{3}{4} \binom{3}{4} \genfrac{}{}{0}{}{3}{4}
101
102
Fractions can be arbitrarily nested::
103
0 commit comments