milkviz.dot_heatmap#
- milkviz.dot_heatmap(dot_size: np.ndarray, dot_hue: np.ndarray | str = None, matrix_hue: np.ndarray = None, xticklabels=None, yticklabels=None, xlabel=None, ylabel=None, sizes=(1, 200), size_norm=None, dtype=None, dot_patch='circle', dot_outline=True, outline_color='.8', alpha=1.0, dot_cmap=None, matrix_cmap=None, dot_norm=None, matrix_norm=None, dot_size_legend_kw=None, dot_hue_cbar_kw=None, matrix_cbar_kw=None, frameon=False, ax=None) DotHeatmap #
Dot heatmap + Matrix heatmap
- Parameters
- dot_sizearray-like
2D array that define the size of dot or range of pie
- dot_huecolor, array-like color or number, default: “C0”
Supply one color to make all dot in the same color, To config each one, supply a 2D array.
- matrix_huearray-like
The array that map to matrix colors
- xticklabelsarray-like of str
- yticklabelsarray-like of str
- xlabelstr
- ylabelstr
- sizestuple, default: (1, 200)
The range of size to plot
- size_norm
A Normalize instance to scale sizes
- dtype
- dot_patch{“circle”, “pie”}
The style of dot
- dot_outlinebool, default: True
Whether to draw the dot outline
- outline_color: , default: “.8”
The color of the dot outline
- alphafloat
Control the opacity
- dot_cmapcolormap, default: “RdBu”
The colormap for dot
- matrix_cmapcolormap, default: “YlGn”
The colormap for matrix
- dot_norm
- matrix_norm
- dot_size_legend_kwdict
- dot_hue_cbar_kwdict
- matrix_cbar_kwdict
- frameonbool, default: False
Whether to draw the frame
- ax
- Returns
DotHeatmap