Note
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.
nilearn.plotting.view_markers¶
- nilearn.plotting.view_markers(marker_coords, marker_color='auto', marker_size=5.0, marker_labels=None, title=None, title_fontsize=25)[source]¶
Insert a 3d plot of markers in a brain into an HTML page.
- Parameters:
- marker_coords
numpy.ndarray
of shape=(n_nodes, 3) The coordinates of the nodes in MNI space.
- marker_color
numpy.ndarray
of shape=(n_nodes,) or ‘auto’, default=’auto’ colors of the markers: list of strings, hex rgb or rgba strings, rgb triplets, or rgba triplets (see formats accepted by matplotlib <https://matplotlib.org/stable/users/explain/colors/colors.html>)
- marker_size
float
or array-like, default=5.0 Size of the markers showing the seeds in pixels.
- marker_labels
list
ofstr
of shape=(n_nodes) or None, default=None Labels for the markers: list of strings
- title
str
or None, default=None Title for the plot.
- title_fontsize
int
, default=25 Fontsize of the title.
- marker_coords
- Returns:
- 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
nilearn.plotting.plot_connectome
projected views of a connectome in a glass brain.
nilearn.plotting.view_connectome
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.