PlotDefaults.caps2plot#
- static PlotDefaults.caps2plot()[source]#
Plotting defaults for
CAP.caps2plot.- Returns:
dict[str, Any] – Default parameters for heatmap and outer product plots:
General Figure Parameters:
- dpi
int, default=300 – Dots per inch for the figure.
- dpi
- figsize
tuple, default=(8, 6) – Figure size in inches (width, height).
- figsize
- fontsize
int, default=14 – Font size for the title of individual plots or subplots.
- fontsize
- bbox_inches
str, default=”tight” – Alters size of the whitespace in the saved image.
- bbox_inches
Subplot Parameters (exclusive to Outer Product plots when
subplots=True):- hspace
float, default=0.2 – Height space between subplots.
- hspace
- wspace
float, default=0.2 – Width space between subplots.
- wspace
- nrow
intorNone, default=None (max 5) – Number of rows for subplots.
- nrow
- ncol
intorNone, default=None (max 5) – Number of columns for subplots.
- ncol
- suptitle_fontsize
float, default=20 – Font size for the main title of subplots.
- suptitle_fontsize
- tight_layout
bool, default=True – Use tight layout for subplots.
- tight_layout
- rect
list[float | int], default=[0, 0.03, 1, 0.95] – Rectangle parameter for “tight_layout” for subplots.
- rect
- sharey
bool, default=True – Share y-axis labels for subplots.
- sharey
Axis Parameters:
- xticklabels_size
int, default=8 – Font size for x-axis tick labels.
- xticklabels_size
- yticklabels_size
int, default=8 – Font size for y-axis tick labels.
- yticklabels_size
- xlabel_rotation
int, default=0 – Rotation angle for x-axis labels.
- xlabel_rotation
- ylabel_rotation
int, default=0 – Rotation angle for y-axis labels.
- ylabel_rotation
Cell Parameters:
- annot
bool, default=False – Add values to cells.
- annot
- annot_kws
dictorNone, default=None – Customize the annotations.
- annot_kws
- fmt
str, default=”.2g” – Format for annotated values.
- fmt
- linewidths
float, default=0 – Padding between each cell in the plot.
- linewidths
- linecolor
str, default=”black” – Color of the line that separates each cell.
- linecolor
- edgecolors
strorNone, default=None – Color of the edges.
- edgecolors
- borderwidths
float, default=0 – Width of the border around the plot.
- borderwidths
- alpha
floatorNone, default=None – Controls transparency (0=transparent, 1=opaque).
- alpha
Colormap Parameters:
- cmap
strorcallable, default=”coolwarm” – Color map for the plot cells.
- cmap
- vmin
floatorNone, default=None – The minimum value to display in colormap.
- vmin
- vmax
floatorNone, default=None – The maximum value to display in colormap.
- vmax
- shrink
float, default=0.8 – Fraction by which to shrink the colorbar.
- shrink
- cbarlabels_size
int, default=8 – Font size for the colorbar labels.
- cbarlabels_size
”Custom” Parcellation Parameters:
- add_custom_node_labels
bool, default=False – When visual_scope=”nodes” and using Custom parcellation, adds simplified node names to plot axes. Instead of labeling every individual node, the node list is collapsed by region. A single label is then placed at the beginning of the group of nodes corresponding to that region (e.g., “LH Visual” or “Hippocampus”), while the other nodes in that group are not explicitly labeled. This is done to minimize cluttering of the axes labels.
Important
This feature should be used with caution. It is recommended to leave this argument as
Falsefor the following conditions:Large Number of Nodes: Enabling labels for a parcellation with many nodes can clutter the plot axes and make them unreadable.
Non-Consecutive Node Indices: The labeling logic assumes that the numerical indices for all nodes within a given region are defined as a consecutive block (e.g.,
"RegionA": [0, 1, 2],"RegionB": [3, 4]). If the indices are non-consecutive or interleaved (e.g.,"RegionA": [0, 2],"RegionB": [1, 3]), the axis labels will be misplaced. Note that this issue only affects the visual labeling on the plot; the underlying data matrix remains correctly ordered and plotted.
- add_custom_node_labels
Note
Color Palettes: Refer to seaborn’s Color Palettes for valid pre-made palettes.