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")
After Change
coronal = np.asarray(V[:, slice_indices[1], :]).astype(np.uint8).T
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.
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
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: 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
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_images