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

Before Change


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

After Change




plt.rc("text", usetex=True)
plt.rc("font", family="serif")
plt.figure(1, figsize=(6, 4))
ax = plt.axes([0.1, 0.1, 0.8, 0.7])
t = np.linspace(0.0, 1.0, 100)
s = np.cos(4 * np.pi * t) + 2
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: kymatio/kymatio
Commit Name: 44e510ee7d49fe9e9126b2e1ecbd916a18450e84
Time: 2018-11-25
Author: edouard.oyallon@centralesupelec.fr
File Name: examples/2d/plot_filters.py
Class Name:
Method Name:


Project Name: lingpy/lingpy
Commit Name: 875a33806acea37f602d0ad20fb77cd42432bbb6
Time: 2013-11-08
Author: bambooforest@gmail.com
File Name: scripts/tokenize/tokenize_pad.py
Class Name:
Method Name: