Skip to content

Commit e0c7152

Browse files
committed
fixing handson_analysis - saving output from plot_glass_brain to a png file to avoid issues with size limit
1 parent c8522b3 commit e0c7152

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

notebooks/handson_analysis.ipynb

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -998,8 +998,11 @@
998998
"outputs": [],
999999
"source": [
10001000
"plot_glass_brain('/output/datasink_handson/normalized/sub-07/wess_0008.nii',\n",
1001+
" output_file=\"/output/datasink_handson/normalized/sub-07/f-contr_activation.png\",\n",
10011002
" colorbar=True, display_mode='lyrz', black_bg=True, threshold=25,\n",
1002-
" title='subject 7 - F-contrast: Activation');"
1003+
" title='subject 7 - F-contrast: Activation');\n",
1004+
"\n",
1005+
"Image(filename='/output/datasink_handson/normalized/sub-07/f-contr_activation.png')"
10031006
]
10041007
},
10051008
{
@@ -1009,8 +1012,11 @@
10091012
"outputs": [],
10101013
"source": [
10111014
"plot_glass_brain('/output/datasink_handson/normalized/sub-07/wess_0009.nii',\n",
1015+
" output_file=\"/output/datasink_handson/normalized/sub-07/f-contr_differences.png\",\n",
10121016
" colorbar=True, display_mode='lyrz', black_bg=True, threshold=25,\n",
1013-
" title='subject 7 - F-contrast: Differences');"
1017+
" title='subject 7 - F-contrast: Differences');\n",
1018+
"\n",
1019+
"Image(filename='/output/datasink_handson/normalized/sub-07/f-contr_differences.png')"
10141020
]
10151021
},
10161022
{
@@ -1648,7 +1654,7 @@
16481654
"metadata": {
16491655
"anaconda-cloud": {},
16501656
"kernelspec": {
1651-
"display_name": "Python [default]",
1657+
"display_name": "Python 3",
16521658
"language": "python",
16531659
"name": "python3"
16541660
},
@@ -1662,7 +1668,7 @@
16621668
"name": "python",
16631669
"nbconvert_exporter": "python",
16641670
"pygments_lexer": "ipython3",
1665-
"version": "3.6.5"
1671+
"version": "3.7.8"
16661672
}
16671673
},
16681674
"nbformat": 4,

0 commit comments

Comments
 (0)