sainsc.lazykde.LazyKDE.plot_KDE_histogram
- sainsc.lazykde.LazyKDE.plot_KDE_histogram(*, gene=None, remove_background=False, crop=None, **kwargs)
Plot a histogram of the kernel density estimates.
Plots either the kernel density estimate (KDE) of the total mRNA (
sainsc.LazyKDE.total_mRNA_KDE) or of a single gene if gene is provided.- Parameters:
gene (str, optional) – Gene for which the KDE histogram is plotted.
remove_background (bool, optional) – If True, all pixels for which
sainsc.LazyKDE.backgroundis 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)).
kwargs – Other keyword arguments are passed to
matplotlib.pyplot.hist().
- Return type:
See also