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

Skip to content

Commit 349ff97

Browse files
committed
Merge pull request #4994 from mdboom/syntax-error
Added a commit to white-list `test_texmanager`
2 parents 07aff06 + d5a0e5d commit 349ff97

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

lib/matplotlib/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1450,6 +1450,7 @@ def tk_window_focus():
14501450
'matplotlib.tests.test_subplots',
14511451
'matplotlib.tests.test_table',
14521452
'matplotlib.tests.test_text',
1453+
'matplotlib.tests.test_texmanager',
14531454
'matplotlib.tests.test_ticker',
14541455
'matplotlib.tests.test_tightlayout',
14551456
'matplotlib.tests.test_transforms',

lib/matplotlib/tests/test_texmanager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def test_fontconfig_preamble():
1414
tm1 = TexManager()
1515
font_config1 = tm1.get_font_config()
1616

17-
plt.rcParams['text.latex.preamble'] = [r'\usepackage{txfonts}']
17+
plt.rcParams['text.latex.preamble'] = ['\\usepackage{txfonts}']
1818
tm2 = TexManager()
1919
font_config2 = tm2.get_font_config()
2020

0 commit comments

Comments
 (0)