Skip to content

Commit f18ff53

Browse files
authored
Merge pull request #11941 from timhoffm/fix-test-large-subscript-title
Fix test_large_subscript_title()
2 parents b47fd63 + f93f1ce commit f18ff53

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/tests/test_text.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -517,12 +517,12 @@ def test_annotation_update():
517517
def test_large_subscript_title():
518518
fig, axs = plt.subplots(1, 2, figsize=(9, 2.5), constrained_layout=True)
519519
ax = axs[0]
520-
ax.set_title('$\sum_{i} x_i$')
520+
ax.set_title(r'$\sum_{i} x_i$')
521521
ax.set_title('New way', loc='left')
522522
ax.set_xticklabels('')
523523

524524
ax = axs[1]
525-
tt = ax.set_title('$\sum_{i} x_i$')
525+
tt = ax.set_title(r'$\sum_{i} x_i$')
526526
x, y = tt.get_position()
527527
tt.set_position((x, 1.01))
528528
ax.set_title('Old Way', loc='left')

0 commit comments

Comments
 (0)