simba.pl.hist

simba.pl.hist(adata, list_obs=None, list_var=None, kde=True, log=False, pad=1.08, w_pad=None, h_pad=3, fig_size=(3, 3), fig_ncol=3, save_fig=False, fig_path=None, fig_name='plot_histogram.pdf', **kwargs)[source]

histogram plot

Parameters:
  • adata (Anndata) – Annotated data matrix.

  • list_obs (list, optional (default: None)) – A list of observations to plot.

  • list_var (list, optional (default: None)) – A list of variables to plot.

  • kde (bool, optional (default: True)) – If True, compute a kernel density estimate to smooth the distribution and show on the plot

  • log (bool, optional (default: False)) – If True, natural logarithm transformation will be performed.

  • pad (float, optional (default: 1.08)) – Padding between the figure edge and the edges of subplots, as a fraction of the font size.

  • h_pad (float, optional (default: None)) – Padding (height/width) between edges of adjacent subplots, as a fraction of the font size. Defaults to pad.

  • w_pad (float, optional (default: None)) – Padding (height/width) between edges of adjacent subplots, as a fraction of the font size. Defaults to pad.

  • fig_size (tuple, optional (default: (3,3))) – figure size.

  • fig_ncol (int, optional (default: 3)) – the number of columns of the figure panel

  • save_fig (bool, optional (default: False)) – if True,save the figure.

  • fig_path (str, optional (default: None)) – If save_fig is True, specify figure path.

  • fig_name (str, optional (default: ‘plot_violin.pdf’)) – if save_fig is True, specify figure name.

  • **kwargs (dict, optional) – Other keyword arguments are passed through to sns.histplot

Return type:

None