sainsc.lazykde.LazyKDE.plot_cosine_similarity

sainsc.lazykde.LazyKDE.plot_cosine_similarity(*, remove_background=False, crop=None, scalebar=True, im_kwargs=dict(), scalebar_kwargs=SCALEBAR_PARAMS)

Plot the cosine similarity from cell-type assignment.

Parameters:
  • remove_background (bool, optional) – If True, all pixels for which sainsc.LazyKDE.background is False are set to 0.

  • crop (tuple[tuple[int, int], tuple[int, int]], optional) – Coordinates to crop the data defined as ((xmin, xmax), (ymin, ymax)).

  • scalebar (bool, optional) – If True, add a matplotlib_scalebar.scalebar.ScaleBar to the plot.

  • im_kwargs (dict[str, Any], optional) – Keyword arguments that are passed to matplotlib.pyplot.imshow().

  • scalebar_kwargs (dict[str, Any], optional) – Keyword arguments that are passed to matplotlib_scalebar.scalebar.ScaleBar.

Return type:

Figure