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

Skip to content

Commit cd9575e

Browse files
committed
flake
1 parent 9bb351f commit cd9575e

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

lib/matplotlib/mathtext.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -776,7 +776,6 @@ def __init__(self, *args, **kwargs):
776776
else:
777777
fallback_rc = None
778778

779-
780779
if fallback_rc == 'stix':
781780
self.cm_fallback = StixFonts(*args, **kwargs)
782781
elif fallback_rc == 'stixsans':
@@ -861,7 +860,8 @@ def _get_glyph(self, fontname, font_class, sym, fontsize, math=True):
861860
and isinstance(self.cm_fallback, StixFonts)):
862861
fontname = 'rm'
863862

864-
g = self.cm_fallback._get_glyph(fontname, font_class, sym, fontsize)
863+
g = self.cm_fallback._get_glyph(fontname, font_class,
864+
sym, fontsize)
865865
fname = g[0].family_name
866866
if fname in list(BakomaFonts._fontmap.values()):
867867
fname = "Computer Modern"

lib/matplotlib/tests/test_mathtext.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
import numpy as np
55
import pytest
6-
import warnings
76

87
import matplotlib
98
import matplotlib as mpl
@@ -301,5 +300,3 @@ def test_mathtext_fallback_invalid():
301300
def test_mathtext_fallback_to_cm_invalid():
302301
for fallback in [True, False]:
303302
mpl.rcParams['mathtext.fallback_to_cm'] = fallback
304-
305-

tutorials/text/mathtext.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -296,9 +296,9 @@
296296
The fonts used should have a Unicode mapping in order to find any
297297
non-Latin characters, such as Greek. If you want to use a math symbol
298298
that is not contained in your custom fonts, you can set
299-
:rc:`mathtext.fallback` to either ``'cm'`` or ``'stix'``
300-
which ``'stixsans'`` will cause the mathtext system to use
301-
characters from an alternative font whenever a particular
299+
:rc:`mathtext.fallback` to either ``'cm'``, ``'stix'`` or ``'stixsans'``
300+
which will cause the mathtext system to use
301+
characters from an alternative font whenever a particular
302302
character can not be found in the custom font.
303303
304304
Note that the math glyphs specified in Unicode have evolved over time, and many

0 commit comments

Comments
 (0)