Skip to content

Commit

Permalink
small fixes examples
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinPerez committed May 23, 2016
1 parent 4368032 commit bcd8b83
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/01_plotting/plot_demo_glass_brain.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
localizer_tmap_filename, title='plot_glass_brain',
black_bg=True, display_mode='xz', threshold=3)

plotting.show()
# plotting.show()

###############################################################################
# Hemispheric sagittal cuts
Expand Down
5 changes: 4 additions & 1 deletion examples/01_plotting/plot_demo_glass_brain_extensive.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
localizer_tmap_filename = localizer_dataset.tmaps[1]

###############################################################################
# demo glass brain plotting
# demo glass brain plotting.
from nilearn import plotting

# Whole brain saggital cuts
Expand All @@ -36,6 +36,9 @@
plotting.plot_glass_brain(localizer_tmap_filename, threshold=3,
colorbar=True, plot_abs=False)

plotting.show()

###############################################################################
# Hemispheric saggital cuts
plotting.plot_glass_brain(localizer_tmap_filename, threshold=3,
display_mode='lyrz')
Expand Down
9 changes: 9 additions & 0 deletions examples/03_connectivity/plot_connectivity_measures.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,3 +97,12 @@
plt.grid(True)
plt.tight_layout()
plt.show()


######################################################################
# Plot the mean connectome with hemispheric saggital cuts
for kind in kinds:
nilearn.plotting.plot_connectome(mean_connectivity_matrix[kind],
region_coords, edge_threshold='98%',
title=kind, display_mode='lzry')
plt.show()

0 comments on commit bcd8b83

Please sign in to comment.