048cafd2c17219d0e47d90aa073f90d516902a02,examples/text_labels_and_annotations/tex_demo.py,,,#,20

Before Change


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()

After 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)}")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


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


Project Name: danforthcenter/plantcv
Commit Name: 4da4eb2efc5aebbdd83fae53fb56c720fffa6127
Time: 2015-08-19
Author: maliadong@gmail.com
File Name: lib/plantcv/analyze_color.py
Class Name:
Method Name: _pseudocolored_image


Project Name: matplotlib/matplotlib
Commit Name: e30d055aca6da86ef147f6772b7b53a82b645b9e
Time: 2018-10-05
Author: 23121882+ImportanceOfBeingErnest@users.noreply.github.com
File Name: tutorials/intermediate/constrainedlayout_guide.py
Class Name:
Method Name: