a380334bad613089de4c57b26245b91f85d0e16e,plot_visualization.py,,,#,10

Before Change


pl.subplot(133)
pl.axis("off")
pl.title("Axial")
pl.imshow(np.rot90(data[:, :, 32, 100]), interpolation="nearest",
          cmap=pl.cm.gray)

// Extracting a brain mask //////////////////////////////////////////////////////////////////////////////////////////////////////

After Change


import pylab as pl

// Compute the mean EPI: we do the mean along the axis 3, which is time
mean_img = np.mean(fmri_data, axis=3)

// pl.figure() creates a new figure
pl.figure()

// First subplot: coronal view
// subplot: 1 line, 3 columns and use the first subplot
pl.subplot(1, 3, 1)
// Turn off the axes, we don"t need it
pl.axis("off")
// We use pl.imshow to display an image, and use a "gray" colormap
// we also use np.rot90 to rotate the image
pl.imshow(np.rot90(mean_img[:, 32, :]), interpolation="nearest",
          cmap=pl.cm.gray)
pl.title("Coronal")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: nilearn/nilearn
Commit Name: a380334bad613089de4c57b26245b91f85d0e16e
Time: 2012-06-25
Author: gael.varoquaux@normalesup.org
File Name: plot_visualization.py
Class Name:
Method Name:


Project Name: nilearn/nilearn
Commit Name: c937bb149b7a44b864fe760ed75f334797639579
Time: 2014-02-11
Author: virgile.fritsch@gmail.com
File Name: plot_haxby_searchlight.py
Class Name:
Method Name:


Project Name: nilearn/nilearn
Commit Name: 25f302d38fd1645d79933df3a8b038c2c66f73aa
Time: 2012-09-28
Author: alexandre.abraham@cea.fr
File Name: plot_nifti_simple.py
Class Name:
Method Name: