PlotDefaults.transition_matrix#
- static PlotDefaults.transition_matrix()[source]#
Plotting defaults for
transition_matrix.- Returns:
dict[str, Any] – Default parameters for transition matrix 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
- bbox_inches
str, default=”tight” – Alters size of the whitespace in the saved image.
- bbox_inches
Title and Font Parameters:
- fontsize
int, default=14 – Font size for the title of each plot.
- fontsize
- 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=True – Add values to each cell.
- 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
float,int, orNone, default=None – Controls transparency (0=transparent, 1=opaque).
- alpha
Colormap Parameters:
- cmap
strorcallable, default=”coolwarm” – Color map for the plot cells.
- cmap
- cbarlabels_size
int, default=8 – Font size for the colorbar labels.
- cbarlabels_size
- 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
Note
Color Palettes: Refer to seaborn’s Color Palettes for valid pre-made palettes.