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

Skip to content

Commit e070ae5

Browse files
committed
CM params are good enough default
1 parent 2c51662 commit e070ae5

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

lib/matplotlib/mathtext.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2709,13 +2709,9 @@ def subsuper(self, s, loc, toks):
27092709
state.font, state.fontsize, state.dpi)
27102710

27112711
fs = rcParams['mathtext.fontset']
2712-
# If a custom fontset is used, try to infer what sort of font is being
2713-
# used. If serif use stix parameters, if sans use stixsans.
2712+
# If a custom fontset is used, use CM parameters
27142713
if fs == 'custom':
2715-
if 'sans' in rcParams['mathtext.rm']:
2716-
fs = 'stixsans'
2717-
else:
2718-
fs = 'stix'
2714+
fs = 'cm'
27192715

27202716
if napostrophes:
27212717
if super is None:

0 commit comments

Comments
 (0)