Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6f83061

Browse files
authored
Merge pull request #16440 from tacaswell/backup_16206
API: Expire deprecation of \stackrel.
2 parents e6caa29 + c4d3cd4 commit 6f83061

18 files changed

+160
-158
lines changed

doc/api/next_api_changes/removals.rst

Lines changed: 5 additions & 0 deletions
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

Lines changed: 0 additions & 10 deletions
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

Lines changed: 38 additions & 36 deletions
Loading
Binary file not shown.

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

Lines changed: 12 additions & 11 deletions
Loading
Binary file not shown.

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

Lines changed: 48 additions & 48 deletions
Loading
Binary file not shown.

0 commit comments

Comments
 (0)