8000 Merge pull request #6832 from hoiqs/tex-unicode-demo · matplotlib/matplotlib@57c73ed · GitHub
[go: up one dir, main page]

Skip to content

Commit 57c73ed

Browse files
authored
Merge pull request #6832 from hoiqs/tex-unicode-demo
DOC: Fix for ylabel title in example tex_unicode_demo.py Issue with py2/p3 unicode escape
2 parents 31a5e57 + ae6cbb1 commit 57c73ed

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

examples/pylab_examples/tex_unicode_demo.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,8 @@
1818
plt.plot(t, s)
1919

2020
plt.xlabel(r'\textbf{time (s)}')
21-
plt.ylabel(r'\textit{Velocity (\u00B0/sec)}', fontsize=16)
22-
plt.title(r"\TeX\ is Number \
23-
$\displaystyle\sum_{n=1}^\infty\frac{-e^{i\pi}}{2^n}$!",
24-
fontsize=16, color='r')
21+
plt.ylabel('\\textit{Velocity (\u00B0/sec)}', fontsize=16)
22+
plt.title(r'\TeX\ is Number $\displaystyle\sum_{n=1}^\infty'
23+
r'\frac{-e^{i\pi}}{2^n}$!', fontsize=16, color='r')
2524
plt.grid(True)
2625
plt.show()

0 commit comments

Comments
 (0)
0