arcfish.pl.cpmt_bars#
- arcfish.pl.cpmt_bars(cpmt_arr: ndarray, ax: Axes, size: str = '5%', ca: tuple[float, float, float] | str | tuple[float, float, float, float] | tuple[tuple[float, float, float] | str, float] | tuple[tuple[float, float, float, float], float] = (0.6941176470588235, 0.25098039215686274, 0.050980392156862744), cb: tuple[float, float, float] | str | tuple[float, float, float, float] | tuple[tuple[float, float, float] | str, float] | tuple[tuple[float, float, float, float], float] = (0.0, 0.10980392156862745, 0.4980392156862745), ax_divider: AxesDivider | None = None)#
Add A/B compartment assignments to a heatmap.
- Parameters:
cpmt_arr ((p,) np.ndarray) – A/B compartment assignments. An array of zeros and ones, where zeros are A compartments.
ax (plt.Axes) – Heatmap ax to add A/B compartment assignments.
size (str, optional) – The width of A/B compartment column, by default “5%”.
ca (ColorType, optional) – Color of A compartments, by default sns.palettes.color_palette(“dark”)[1].
cb (ColorType, optional) – Color of B compartments, by default sns.palettes.color_palette(“dark”)[0].
ax_divider (None | axes_divider.AxesDivider, optional) – Axes divider, by default None. If None, create a new one.