sainsc.lazykde.LazyKDE.plot_genecount ===================================== .. py:method:: sainsc.lazykde.LazyKDE.plot_genecount(*, gene = None, crop = None, scalebar = True, im_kwargs = dict(), scalebar_kwargs = _SCALEBAR) Plot the gene expression counts. By default this will plot the :py:attr:`sainsc.LazyKDE.total_mRNA`. If `gene` is specified the respective gene will be plotted. :param gene: Gene in :py:attr:`sainsc.LazyKDE.genes` to use for plotting. :type gene: str, 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 scalebar: If `True`, add a ``matplotlib_scalebar.scalebar.ScaleBar`` to the plot. :type scalebar: bool, optional :param im_kwargs: Keyword arguments that are passed to :py:func:`matplotlib.pyplot.imshow`. :type im_kwargs: dict[str, typing.Any], optional :param scalebar_kwargs: Keyword arguments that are passed to ``matplotlib_scalebar.scalebar.ScaleBar``. :type scalebar_kwargs: dict[str, typing.Any], optional :rtype: matplotlib.figure.Figure :raises ValueError: If :py:attr:`sainsc.LazyKDE.total_mRNA` has not been calculated.