f2e2aa02df60786f53f080cf58bf11698b67fc6c,examples/text_labels_and_annotations/tex_demo.py,,,#,20

Before Change


t = np.linspace(0.0, 1.0, 100)
s = np.cos(4 * np.pi * t) + 2

fig, ax = plt.subplots(figsize=(6, 4), tight_layout=True)
ax.plot(t, s)

ax.set_xlabel(r"\textbf{time (s)}")

After Change


plt.ylabel(r"\textit{voltage (mV)}", 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.savefig("tex_demo")
plt.show()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: matplotlib/matplotlib
Commit Name: f2e2aa02df60786f53f080cf58bf11698b67fc6c
Time: 2017-05-30
Author: dstansby@gmail.com
File Name: examples/text_labels_and_annotations/tex_demo.py
Class Name:
Method Name:


Project Name: commonsense/conceptnet5
Commit Name: 8524810d21a051f88478b430da098b046accd5a4
Time: 2017-04-24
Author: rob@luminoso.com
File Name: conceptnet5/vectors/evaluation/compare.py
Class Name:
Method Name: graph_comparison


Project Name: arviz-devs/arviz
Commit Name: 8a99fe2f7460e6ddbc6840f3754993c8cc17df88
Time: 2018-05-21
Author: aloctavodia@gmail.com
File Name: arviz/plots/autocorrplot.py
Class Name:
Method Name: autocorrplot