8000 MEP12 on tex_unicode_demo.py by ericmjl · Pull Request #4646 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

MEP12 on tex_unicode_demo.py #4646

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 20, 2015
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
PEP8 fixes
  • Loading branch information
ericmjl committed Jul 19, 2015
commit d119526dab6e453e385a2fc198d28c4a470d1562
13 changes: 5 additions & 8 deletions examples/pylab_examples/tex_unicode_demo.py
8A25
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,11 @@
"""

from __future__ import unicode_literals
import numpy as np
import matplotlib
matplotlib.rcParams['text.usetex'] = True
matplotlib.rcParams['text.latex.unicode'] = True

import numpy as np
# from numpy import arange, cos, pi
# from matplotlib.pyplot import (figure, axes, plot, xlabel, ylabel, title,
# grid, savefig, show)
import matplotlib.pyplot as plt
import matplotlib.pyplot as plt

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

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.title(r"\TeX\ is Number \
$\displaystyle\sum_{n=1}^\infty\frac{-e^{i\pi}}{2^n}$!",
fontsize=16, color='r')
plt.grid(True)
plt.show()
0