0d6fd37f57b187395ee3addc8d5a758337830f60,dipy/viz/regtools.py,,plot_slices,#Any#Any#Any#,264

Before Change


    // Plot the slices
    plt.figure()
    plt.subplot(1, 3, 1).set_axis_off()
    plt.imshow(axial, cmap=plt.cm.gray, origin="lower")
    plt.title("Axial")
    plt.subplot(1, 3, 2).set_axis_off()
    plt.imshow(coronal, cmap=plt.cm.gray, origin="lower")
    plt.title("Coronal")

After Change


    sagittal = np.asarray(V[slice_indices[0], :, :]).astype(np.uint8).T

    fig = _three_plot([axial, coronal, sagittal],
                      ["Axial", "Coronal", "Sagittal"],
                      cmap=plt.cm.gray, origin="lower")

    // Save the figure if requested
    if fname is not None:
        fig.savefig(fname, bbox_inches="tight")

    return fig

def overlay_slices(L, R, slice_index=None, slice_type=1, ltitle="Left",
                   rtitle="Right", fname=None):
    rPlot three overlaid slices from the given volumes.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: nipy/dipy
Commit Name: 0d6fd37f57b187395ee3addc8d5a758337830f60
Time: 2015-02-04
Author: arokem@gmail.com
File Name: dipy/viz/regtools.py
Class Name:
Method Name: plot_slices


Project Name: matplotlib/matplotlib
Commit Name: 5e7ffdae5326691faeb6faad4828f62ff9720681
Time: 2020-03-12
Author: anntzer.lee@gmail.com
File Name: lib/mpl_toolkits/axes_grid1/axes_rgb.py
Class Name:
Method Name: imshow_rgb


Project Name: nipy/dipy
Commit Name: 0d6fd37f57b187395ee3addc8d5a758337830f60
Time: 2015-02-04
Author: arokem@gmail.com
File Name: dipy/viz/regtools.py
Class Name:
Method Name: overlay_slices