Skip to content

Commit 85fd1ab

Browse files
authored
Merge pull request #16206 from anntzer/unstackrel
API: Expire deprecation of \stackrel
2 parents 81e4720 + c4d3cd4 commit 85fd1ab

18 files changed

+160
-158
lines changed

doc/api/next_api_changes/removals.rst

+5
Original file line numberDiff line numberDiff line change
@@ -135,3 +135,8 @@ rcParams
135135
Environment variables
136136
~~~~~~~~~~~~~~~~~~~~~
137137
- ``MATPLOTLIBDATA`` (no replacement).
138+
139+
mathtext
140+
~~~~~~~~
141+
- The ``\stackrel`` command (which behaved differently from its LaTeX version)
142+
has been removed. Use ``\genfrac`` instead.

lib/matplotlib/mathtext.py

-10
Original file line numberDiff line numberDiff line change
@@ -3170,16 +3170,6 @@ def dfrac(self, s, loc, toks):
31703170
return self._genfrac('', '', thickness,
31713171
self._math_style_dict['displaystyle'], num, den)
31723172

3173-
@cbook.deprecated("3.1", obj_type="mathtext command",
3174-
alternative=r"\genfrac")
3175-
def stackrel(self, s, loc, toks):
3176-
assert len(toks) == 1
3177-
assert len(toks[0]) == 2
3178-
num, den = toks[0]
3179-
3180-
return self._genfrac('', '', 0.0,
3181-
self._math_style_dict['textstyle'], num, den)
3182-
31833173
def binom(self, s, loc, toks):
31843174
assert len(toks) == 1
31853175
assert len(toks[0]) == 2
Binary file not shown.

lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_cm_69.svg

+38-36
Loading
Binary file not shown.

lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavusans_69.svg

+12-11
Loading
Binary file not shown.

lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavuserif_69.svg

+48-48
Loading
Binary file not shown.

0 commit comments

Comments
 (0)