|
76 | 76 | "metadata": {}, |
77 | 77 | "outputs": [], |
78 | 78 | "source": [ |
79 | | - "import nibabel as nb\n", |
80 | | - "%matplotlib inline\n", |
81 | | - "nb.load('/data/ds000114/sub-01/ses-test/anat/sub-01_ses-test_T1w.nii.gz').orthoview();" |
| 79 | + "from nilearn.plotting import plot_anat\n", |
| 80 | + "%matplotlib inline" |
| 81 | + ] |
| 82 | + }, |
| 83 | + { |
| 84 | + "cell_type": "code", |
| 85 | + "execution_count": null, |
| 86 | + "metadata": {}, |
| 87 | + "outputs": [], |
| 88 | + "source": [ |
| 89 | + "plot_anat('/data/ds000114/sub-01/ses-test/anat/sub-01_ses-test_T1w.nii.gz', dim=-1);" |
82 | 90 | ] |
83 | 91 | }, |
84 | 92 | { |
|
123 | 131 | "metadata": {}, |
124 | 132 | "outputs": [], |
125 | 133 | "source": [ |
126 | | - "nb.load('/data/ds000114/sub-01/ses-test/anat/sub-01_ses-test_T1w_bet.nii.gz').orthoview();" |
| 134 | + "plot_anat('/data/ds000114/sub-01/ses-test/anat/sub-01_ses-test_T1w_bet.nii.gz', dim=-1);" |
127 | 135 | ] |
128 | 136 | }, |
129 | 137 | { |
|
162 | 170 | "metadata": {}, |
163 | 171 | "outputs": [], |
164 | 172 | "source": [ |
165 | | - "nb.load(res.outputs.out_file).orthoview();" |
| 173 | + "plot_anat(res.outputs.out_file, dim=-1);" |
166 | 174 | ] |
167 | 175 | }, |
168 | 176 | { |
|
686 | 694 | "metadata": {}, |
687 | 695 | "outputs": [], |
688 | 696 | "source": [ |
689 | | - "nb.load(result.outputs.out_file).orthoview()" |
| 697 | + "plot_anat(result.outputs.out_file, dim=-1);" |
690 | 698 | ] |
691 | 699 | }, |
692 | 700 | { |
|
765 | 773 | "metadata": {}, |
766 | 774 | "outputs": [], |
767 | 775 | "source": [ |
768 | | - "nb.load(orig_image).orthoview()" |
| 776 | + "plot_anat(orig_image, dim=-1);" |
769 | 777 | ] |
770 | 778 | }, |
771 | 779 | { |
|
774 | 782 | "metadata": {}, |
775 | 783 | "outputs": [], |
776 | 784 | "source": [ |
777 | | - "nb.load('translated.nii.gz').orthoview()" |
| 785 | + "plot_anat('translated.nii.gz', dim=-1);" |
778 | 786 | ] |
779 | 787 | }, |
780 | 788 | { |
|
857 | 865 | "outputs": [], |
858 | 866 | "source": [ |
859 | 867 | "# Plot the result\n", |
860 | | - "nb.load('translated_functioninterface.nii.gz').orthoview()" |
| 868 | + "plot_anat('translated_functioninterface.nii.gz', dim=-1);" |
861 | 869 | ] |
862 | 870 | }, |
863 | 871 | { |
|
1096 | 1104 | "metadata": {}, |
1097 | 1105 | "outputs": [], |
1098 | 1106 | "source": [ |
1099 | | - "nb.load(result.outputs.out_file).orthoview()" |
| 1107 | + "plot_anat(result.outputs.out_file, dim=-1);" |
1100 | 1108 | ] |
1101 | 1109 | }, |
1102 | 1110 | { |
|
0 commit comments