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:

    • dpiint, default=300 –

      Dots per inch for the figure.

    • figsizetuple, default=(8, 6) –

      Figure size in inches (width, height).

    • bbox_inchesstr, default=”tight” –

      Alters size of the whitespace in the saved image.

  • Title and Font Parameters:

    • fontsizeint, default=14 –

      Font size for the title of each plot.

    • xticklabels_sizeint, default=8 –

      Font size for x-axis tick labels.

    • yticklabels_sizeint, default=8 –

      Font size for y-axis tick labels.

    • xlabel_rotationint, default=0 –

      Rotation angle for x-axis labels.

    • ylabel_rotationint, default=0 –

      Rotation angle for y-axis labels.

  • Cell Parameters:

    • annotbool, default=True –

      Add values to each cell.

    • annot_kwsdict or None, default=None –

      Customize the annotations.

    • fmtstr, default=”.2g” –

      Format for annotated values.

    • linewidthsfloat, default=0 –

      Padding between each cell in the plot.

    • linecolorstr, default=”black” –

      Color of the line that separates each cell.

    • edgecolorsstr or None, default=None –

      Color of the edges.

    • borderwidthsfloat, default=0 –

      Width of the border around the plot.

    • alphafloat, int, or None, default=None –

      Controls transparency (0=transparent, 1=opaque).

  • Colormap Parameters:

    • cmapstr or callable, default=”coolwarm” –

      Color map for the plot cells.

    • cbarlabels_sizeint, default=8 –

      Font size for the colorbar labels.

    • vminfloat or None, default=None –

      The minimum value to display in colormap.

    • vmaxfloat or None, default=None –

      The maximum value to display in colormap.

    • shrinkfloat, default=0.8 –

      Fraction by which to shrink the colorbar.

Note

Color Palettes: Refer to seaborn’s Color Palettes for valid pre-made palettes.