sainsc.LazyKDE.plot_KDE_histogram ================================= .. py:method:: sainsc.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 (:py:attr:`sainsc.LazyKDE.total_mRNA_KDE`) or of a single gene if `gene` is provided. :param gene: Gene for which the KDE histogram is plotted. :type gene: str, optional :param remove_background: If `True`, all pixels for which :py:attr:`sainsc.LazyKDE.background` is `False` are set to 0. :type remove_background: bool, optional :param crop: Coordinates to crop the data defined as `((xmin, xmax), (ymin, ymax))`. :type crop: tuple[tuple[int, int], tuple[int, int]], optional :param kwargs: Other keyword arguments are passed to :py:func:`matplotlib.pyplot.hist`. :rtype: matplotlib.figure.Figure .. seealso:: :py:meth:`sainsc.LazyKDE.kde`