dirconn.viz.degree_imbalance_map#
- dirconn.viz.degree_imbalance_map(values: Any, *, subjects_dir: str | Path | None = None, hemi: str = 'split', views: Sequence[str] = ('lateral', 'medial'), vmax: float | None = None, degrees: str = 'all edges, raw values', backend: str = 'auto', size: tuple[int, int] = (1200, 750)) Any#
Colour the cortical surface by
log(D_out) - log(D_in)of every region (MNE 3D plot).Red means a region sends more than it receives (a source), blue the reverse; the scale is symmetric around zero. Regions without a value stay uncoloured. The figure carries
GUARD_CAPTION: the values describe predictive influence and the regions’ signals were not corrected for leakage between neighbouring regions.- Parameters:
values (mapping, Series or DataArray) – A value per region, for example
conn.degree_imbalance()of a result whose nodes are Desikan-Killiany regions (names like"precuneus-lh").subjects_dir (path, optional) – The FreeSurfer subjects directory with
fsaverage; the default issubjectsof the MNE sample dataset.hemi – As in
SourceEstimate.plot.views – As in
SourceEstimate.plot.size – As in
SourceEstimate.plot.vmax (float, optional) – Largest absolute value of the colour scale; default the largest absolute value drawn.
degrees (str) – Says which edges the degrees were summed over; it is written into the title, so that the figure states the choice made in
degree_imbalance(a mask or none).backend (str) – MNE’s 3D backend (
"auto"follows MNE’s configuration; it never changes it).
- Returns:
Close it with
brain.close();brain.screenshot()returns the image as an array.- Return type:
mne.viz.Brain