Skip to content

Commit 54c19f5

Browse files
committed
Fix syntax error
Using \u, even in a raw string, is a syntax error when unicode_literals is on.
1 parent eb42cfc commit 54c19f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/tests/test_texmanager.py

+1-1
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)