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_subgraph_connectome#

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

Plot the connectome for a subgraph, e.g. plot only one subnetwork.

Parameters:
subgraphnetworkx.Graph.subgraph

Subgraph to plot.

atlas_coordsnumpy.ndarray

Atlas coordinates.

thresholdstr, optional

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

dimstr, optional

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

Returns:
viewnilearn.plotting.html_connectome.ConnectomeView

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

Examples

>>> from meierlab.viz import network_viz as nv