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

Skip to content

Commit c1d0e41

Browse files
committed
BUG: Remove mathtext default shim for ticker (Fixes #8017)
The shim was put in place because the thinking was changing the default fonts would eliminate the need. That's not the case, as that prevents other font changes from being reflected when mathtext is used.
1 parent 47eb989 commit c1d0e41

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

lib/matplotlib/ticker.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -197,16 +197,7 @@ def _divmod(x, y):
197197

198198

199199
def _mathdefault(s):
200-
"""
201-
For backward compatibility, in classic mode we display
202-
sub/superscripted text in a mathdefault block. As of 2.0, the
203-
math font already matches the default font, so we don't need to do
204-
that anymore.
205-
"""
206-
if rcParams['_internal.classic_mode']:
207-
return '\\mathdefault{%s}' % s
208-
else:
209-
return '{%s}' % s
200+
return '\\mathdefault{%s}' % s
210201

211202

212203
class _DummyAxis(object):

0 commit comments

Comments
 (0)