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.get_subgraph_coords#
- meierlab.viz.network_viz.get_subgraph_coords(subgraph, atlas_coords)[source]#
Helper function to get plotting coordinates for a subgraph from the full atlas.
- Parameters:
- subgraph
networkx.Graph.subgraph Subgraph with ‘index’ values attributed to nodes.
- atlas_coordsnumpy.ndarray
Coordinate values for an atlas/parcellation.
- subgraph
- Returns:
- numpy.ndarray
Atlas coordinates for the given subgraph.
Examples
>>> from meierlab.viz import network_viz as nv