c1b6a1c39fdd4661930280c6098de55359c5a078,examples/animation/animation_demo.py,,,#,16

Before Change


import numpy as np

x = np.arange(6)
y = np.arange(5)
z = x * y[:, np.newaxis]

for i in range(5):
    if i == 0:

After Change


import numpy as np

np.random.seed(19680801)
data = np.random.random((50, 50, 50))

fig, ax = plt.subplots()

for i in range(len(data)):
    ax.cla()
    ax.imshow(data[i])
    ax.set_title("frame {}".format(i))
    // Note that using time.sleep does *not* work here!
    plt.pause(0.1)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: matplotlib/matplotlib
Commit Name: c1b6a1c39fdd4661930280c6098de55359c5a078
Time: 2017-11-24
Author: anntzer.lee@gmail.com
File Name: examples/animation/animation_demo.py
Class Name:
Method Name:


Project Name: rtavenar/tslearn
Commit Name: 58196a3a29899140a54c8e81bd4a57adefdd793d
Time: 2020-06-12
Author: romain.tavenard@univ-rennes2.fr
File Name: tslearn/docs/examples/classification/plot_early_classification.py
Class Name:
Method Name:


Project Name: nilmtk/nilmtk
Commit Name: 0ac7cecce4f147011037fcb79dfd57867b8329a8
Time: 2014-12-19
Author: jack-list@xlk.org.uk
File Name: nilmtk/metergroup.py
Class Name: MeterGroup
Method Name: plot_good_sections