Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f18ff53

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

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎lib/matplotlib/tests/test_text.py

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_text.py
+2-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.