9b9095f877f603d91495c72f91e4fddf61f1724e,examples/02_decoding/plot_haxby_stimuli.py,,,#,15

Before Change


    file_names = stimulus_information[stim_type]

    plt.figure()
    for i in range(48):
        plt.subplot(6, 8, i + 1)
        try:
            plt.imshow(plt.imread(file_names[i]), cmap=plt.cm.gray)
        except Exception:
            // just go to the next one if the file is not present
            pass
        plt.axis("off")
    plt.suptitle(stim_type)

show()

After Change


        fig, axes = plt.subplots(6, 8)
        fig.suptitle(stim_type)

        for img_path, ax in zip(file_names, axes.ravel()):
            ax.imshow(plt.imread(img_path), cmap=plt.cm.gray)

        for ax in axes.ravel():
            ax.axis("off")

show()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: nilearn/nilearn
Commit Name: 9b9095f877f603d91495c72f91e4fddf61f1724e
Time: 2019-07-22
Author: jerome@dockes.org
File Name: examples/02_decoding/plot_haxby_stimuli.py
Class Name:
Method Name:


Project Name: eriklindernoren/Keras-GAN
Commit Name: 6f90dac721f38b365ad87e1633860f53b9ca44db
Time: 2018-03-14
Author: eriklindernoren@gmail.com
File Name: discogan/data_loader.py
Class Name: DataLoader
Method Name: load_data


Project Name: deepfakes/faceswap
Commit Name: afd4fa789b00e2aafd0f4ef1f864f87a62a44499
Time: 2018-12-22
Author: 36920800+torzdf@users.noreply.github.com
File Name: scripts/fsmedia.py
Class Name: Images
Method Name: load