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

Skip to content

Commit 24a043c

Browse files
committed
Use correct variable in error message
The list comprehension variable was captured and would always be the last element of the font family list. See https://lgtm.com/projects/g/matplotlib/matplotlib/snapshot/04c252c6b155aba6a68b28f10fc8c84a784ff2c2/files/lib/matplotlib/texmanager.py#L203
1 parent de2755c commit 24a043c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/texmanager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ def __init__(self):
200200
else:
201201
mpl.verbose.report('No LaTeX-compatible font found for the '
202202
'%s font family in rcParams. Using '
203-
'default.' % ff, 'helpful')
203+
'default.' % font_family, 'helpful')
204204
setattr(self, font_family_attr, self.font_info[font_family])
205205
fontconfig.append(getattr(self, font_family_attr)[0])
206206
# Add a hash of the latex preamble to self._fontconfig so that the

0 commit comments

Comments
 (0)