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

Skip to content

Commit d119526

Browse files
committed
PEP8 fixes
1 parent 100e7e0 commit d119526

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

examples/pylab_examples/tex_unicode_demo.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,11 @@
66
"""
77

88
from __future__ import unicode_literals
9+
import numpy as np
910
import matplotlib
1011
matplotlib.rcParams['text.usetex'] = True
1112
matplotlib.rcParams['text.latex.unicode'] = True
12-
13-
import numpy as np
14-
# from numpy import arange, cos, pi
15-
# from matplotlib.pyplot import (figure, axes, plot, xlabel, ylabel, title,
16-
# grid, savefig, show)
17-
import matplotlib.pyplot as plt
13+
import matplotlib.pyplot as plt
1814

1915
plt.figure(1, figsize=(6, 4))
2016
ax = plt.axes([0.1, 0.1, 0.8, 0.7])
@@ -24,7 +20,8 @@
2420

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

0 commit comments

Comments
 (0)