This page is a reference documentation. It only explains the function signature, and not how to use it. Please refer to the user guide for the big picture.

7.10.21. nilearn.plotting.view_markers

nilearn.plotting.view_markers(marker_coords, marker_color=None, marker_size=5.0, title=None, title_fontsize=25)

Insert a 3d plot of markers in a brain into an HTML page.

marker_coordsndarray, shape=(n_nodes, 3)

the coordinates of the nodes in MNI space.

marker_colorndarray, shape=(n_nodes,)

colors of the markers: list of strings, hex rgb or rgba strings, rgb triplets, or rgba triplets (i.e. formats accepted by matplotlib, see

marker_sizefloat or array-like, optional (default=3.)

Size of the markers showing the seeds in pixels.

titlestr, optional (default=None)

title for the plot

title_fontsizeint, optional (default=25)

fontsize of the title

ConnectomeViewplot of the markers.

It can be saved as an html page or rendered (transparently) by the Jupyter notebook. Useful methods are :

  • ‘resize’ to resize the plot displayed in a Jupyter notebook

  • ‘save_as_html’ to save the plot to a file

  • ‘open_in_browser’ to save the plot and open it in a web browser.

See also


projected views of a connectome in a glass brain.


interactive plot of a connectome.

nilearn.plotting.view_surf, nilearn.plotting.view_img_on_surf

interactive view of statistical maps or surface atlases on the cortical surface.