Skip to content

Commit

Permalink
Merge pull request #6832 from hoiqs/tex-unicode-demo
Browse files Browse the repository at this point in the history
DOC: Fix for ylabel title in example tex_unicode_demo.py

Issue with py2/p3 unicode escape
  • Loading branch information
tacaswell committed Aug 2, 2016
1 parent 7dca75f commit 7074991
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions examples/pylab_examples/tex_unicode_demo.py
Expand Up @@ -19,9 +19,8 @@
plt.plot(t, s)

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

0 comments on commit 7074991

Please sign in to comment.