dyngpt.pl.plot_image_density¶
- dyngpt.pl.plot_image_density(data1, data2, ax, histbins=[101, 51], step=2, cmap_limit=[0.1, 0.9], cmap_val='Blues', vmax_hist=0.015, vmin_hist=0.001, xy_labels=['Nascent RNA counts', 'Mature RNA counts'])[source]¶
Plot a 2D density heatmap comparing two datasets.
- Args:
data1 (array-like): The first dataset (e.g., Nascent RNA counts). data2 (array-like): The second dataset (e.g., Mature RNA counts). ax (matplotlib.axes.Axes): The axis object where the plot will be drawn. histbins (list, optional): The number of bins for the histogram along each axis. Defaults to [101, 51]. step (int, optional): The step size for binning. Defaults to 2. cmap_limit (list, optional): The lower and upper limits for the colormap. Defaults to [0.1, 0.9]. cmap_val (str, optional): The name of the colormap to use. Defaults to “Blues”. vmax_hist (float, optional): The maximum value for color scaling. Defaults to 0.015. vmin_hist (float, optional): The minimum value for color scaling. Defaults to 0.001. xy_labels (list, optional): Labels for the x and y axes. Defaults to [“Nascent RNA counts”, “Mature RNA counts”].