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 7074991

Browse filesBrowse 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
Copy full SHA for 7074991

File tree

Expand file treeCollapse file tree

1 file changed

+3
-4
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-4
lines changed

‎examples/pylab_examples/tex_unicode_demo.py

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