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

Before Change



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:

After Change


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: matplotlib/matplotlib
Commit Name: 869bd95b3d8eb4e333f303a7fd25cb84f1b66c6f
Time: 2017-05-29
Author: quantum.analyst@gmail.com
File Name: examples/images_contours_and_fields/image_demo.py
Class Name:
Method Name:


Project Name: scikit-image/scikit-image
Commit Name: a406e270b138970283a26d60371861abe7e0bf8b
Time: 2016-04-23
Author: vighneshbirodkar@gmail.com
File Name: doc/examples/segmentation/plot_rag_draw.py
Class Name:
Method Name: