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.

meierlab.viz.network_viz.plot_connectome_from_graph#

meierlab.viz.network_viz.plot_connectome_from_graph(g, atlas_coords, threshold='80%', dim='2d')[source]#

Plot full connectome from a graph g.

Parameters:
gnetworkx.Graph

Network graph to plot.

atlas_coordsnumpy.ndarray

Nifti file of atlas/parcellation.

thresholdstr, optional

Edge threshold for visualization, by default “80%”.

dimstr, optional

View plot in 2d or 3d, by default “2d”.

Returns:
viewnilearn.plotting.html_connectome.ConnectomeView

Nilearn connectome viewer. Save as an html page or view using ‘open_in_browser’ method.

Examples

>>> from meierlab.viz import network_viz as nv