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

Skip to content

Commit d311b9b

Browse files
authored
Merge pull request #16204 from anntzer/unmathcircled
MNT: Expire deprecation of \mathcircled
2 parents 8e2fe9b + 6be45af commit d311b9b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+29
-51
lines changed

doc/api/next_api_changes/removals.rst

Lines changed: 2 additions & 0 deletions

lib/matplotlib/_mathtext_data.py

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2406,30 +2406,6 @@
24062406
[
24072407
(0x0041, 0x005a, 'it', 0xe22d), # A-Z
24082408
],
2409-
'circled':
2410-
{
2411-
'rm':
2412-
[
2413-
(0x0030, 0x0030, 'rm', 0x24ea), # 0
2414-
(0x0031, 0x0039, 'rm', 0x2460), # 1-9
2415-
(0x0041, 0x005a, 'rm', 0x24b6), # A-Z
2416-
(0x0061, 0x007a, 'rm', 0x24d0) # a-z
2417-
],
2418-
'it':
2419-
[
2420-
(0x0030, 0x0030, 'rm', 0x24ea), # 0
2421-
(0x0031, 0x0039, 'rm', 0x2460), # 1-9
2422-
(0x0041, 0x005a, 'it', 0x24b6), # A-Z
2423-
(0x0061, 0x007a, 'it', 0x24d0) # a-z
2424-
],
2425-
'bf':
2426-
[
2427-
(0x0030, 0x0030, 'bf', 0x24ea), # 0
2428-
(0x0031, 0x0039, 'bf', 0x2460), # 1-9
2429-
(0x0041, 0x005a, 'bf', 0x24b6), # A-Z
2430-
(0x0061, 0x007a, 'bf', 0x24d0) # a-z
2431-
],
2432-
},
24332409
'frak':
24342410
{
24352411
'rm':

lib/matplotlib/mathtext.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2299,8 +2299,7 @@ class Parser:
22992299

23002300
_dropsub_symbols = set(r'''\int \oint'''.split())
23012301

2302-
_fontnames = set(
2303-
"rm cal it tt sf bf default bb frak circled scr regular".split())
2302+
_fontnames = set("rm cal it tt sf bf default bb frak scr regular".split())
23042303

23052304
_function_names = set("""
23062305
arccos csc ker min arcsin deg lg Pr arctan det lim sec arg dim
@@ -2618,11 +2617,6 @@ def font(self):
26182617

26192618
@font.setter
26202619
def font(self, name):
2621-
if name == "circled":
2622-
cbook.warn_deprecated(
2623-
"3.1", name="\\mathcircled", obj_type="mathtext command",
2624-
alternative="unicode characters (e.g. '\\N{CIRCLED LATIN "
2625-
"CAPITAL LETTER A}' or '\\u24b6')")
26262620
if name in ('rm', 'it', 'bf'):
26272621
self.font_class = name
26282622
self._font = name
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)