Created
April 28, 2019 12:28
-
-
Save ilkayisik/a8d46867645833510e18140ec22ab7ed to your computer and use it in GitHub Desktop.
plot glass brain with nilearn plotting function
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from nilearn.plotting import plot_glass_brain | |
fig, axes = plt.subplots(nrows=2, ncols=2, figsize=(10, 12)) | |
for gidx, roi in enumerate(rois): | |
plot_glass_brain(roi, plot_abs=False, symmetric_cbar=False, | |
black_bg=True, display_mode='lyrz', colorbar=True, axes=axes[gidx], | |
title=roi_ids[gidx]) | |
plt.savefig(savepath + 'glass_summary.png', dpi=300) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment