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

Before Change


z = x * y[:, np.newaxis]

for i in range(5):
    if i == 0:
        p = plt.imshow(z)
        fig = plt.gcf()
        plt.clim()   // clamp the color limits
        plt.title("Boring slide show")
    else:
        z = z + 2
        p.set_data(z)

    print("step", i)
    plt.pause(0.5)

After Change


import matplotlib.pyplot as plt
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)):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

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: sony/nnabla
Commit Name: 0940b083d3cdd0db46c867523e9a58b196e6e9d5
Time: 2019-01-09
Author: takuma.seno@gmail.com
File Name: python/test/function/test_assign.py
Class Name:
Method Name: test_assign_forward_backward


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: keras-team/keras
Commit Name: 7da1523053f2e5f4fa15c87e019b3244c8653a53
Time: 2015-12-09
Author: francois.chollet@gmail.com
File Name: tests/keras/test_constraints.py
Class Name:
Method Name: