scPyviewer.plot_violin#
- scPyviewer.plot_violin(ds, gene, group=None, figsize=(7.0, 4.0), dpi=150, kind='violin', palette=None, rotation=30, show_points=False, title=None, title_fontsize=11, xlabel=None, ylabel=None, xlabel_fontsize=9, ylabel_fontsize=9, tick_fontsize=8, font_family=None)[source]#
Violin or box plot of a gene’s expression grouped by a metadata column.
- Parameters:
gene (str) – Gene name.
group (str, optional) –
obsgrouping column (defaults tods.group_key).figsize (tuple) – Figure
(width, height)in inches.dpi (int) – Figure resolution.
kind ({"violin", "box"}) – Plot type.
palette (dict, optional) –
{label: color}override.rotation (int) – X-tick label rotation in degrees.
show_points (bool) – Overlay jittered individual data points.
title (str, optional) – Override figure title.
title_fontsize (float) – Title font size.
ylabel (str | None) – Axis label overrides.
ylabel_fontsize (float) – Axis label font sizes.
tick_fontsize (float) – Tick-label font size.
font_family (str, optional) – Font family for this figure only.
ds (Dataset)
xlabel (str | None)
ylabel
xlabel_fontsize (float)
ylabel_fontsize