diff --git a/examples/plot_brainsprite.py b/examples/plot_brainsprite.py new file mode 100644 index 000000000..048e7f3cb --- /dev/null +++ b/examples/plot_brainsprite.py @@ -0,0 +1,57 @@ +""" +Streamline count viewer +========================== +Generate a brainsprite viewer for a streamline coun map with an anatomical +background, by populating an html template. +""" + +from brainsprite import viewer_substitute +import tempita + +anat = './callosal_tract_profile/dti_FA.nii.gz' +stat_img = './callosal_tract_profile/afq_AntFrontal_density_map.nii.gz' + +bsprite = viewer_substitute(vmin=0, cmap="hot", symmetric_cmap=False, + title="streamline_count") +bsprite.fit(stat_img, bg_img=anat) + +template = \ +""" + + +
+ +