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

Skip to content

Commit 7074991

Browse files
committed
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
1 parent 7dca75f commit 7074991

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
@@ -19,9 +19,8 @@
1919
plt.plot(t, s)
2020

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

0 commit comments

Comments
 (0)