scPyviewer.plot_tracksplot#
- scPyviewer.plot_tracksplot(ds, genes, group=None, figsize=None, dpi=150, cmap='viridis', vmin=None, vmax=None, show_group_labels=True, track_height=0.4, max_cells=2000, title=None, title_fontsize=11, gene_label_fontsize=8, group_label_fontsize=8, colorbar_label=None, colorbar_fontsize=8, font_family=None)[source]#
Track-style expression plot: one horizontal color strip per gene.
Cells are sorted by group; vertical dividers mark group boundaries. Better than
sc.pl.tracksplot: full typography control, directfigsize/dpi, and configurable track height.- Parameters:
group (str, optional) –
obscolumn used to sort and annotate cells.figsize (tuple, optional) – Figure
(width, height)in inches. Auto if None.dpi (int) – Resolution.
cmap (str) – Colormap for expression values.
vmax (float | None) – Color-scale limits.
show_group_labels (bool) – Annotate group boundaries at the bottom.
track_height (float) – Height of each gene track in inches.
max_cells (int) – Cap the number of cells drawn; above this a stratified subsample is shown so tracks stay renderable and fast on large datasets.
title (str, optional) – Figure title.
title_fontsize (float) – Title font size.
gene_label_fontsize (float) – Gene name label font size.
group_label_fontsize (float) – Group boundary label font size.
colorbar_label (str, optional) – Override colorbar label.
colorbar_fontsize (float) – Colorbar text size.
font_family (str, optional) – Font family for this figure only.
ds (Dataset)
vmin (float | None)
vmax