We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 43f6011 commit 8535aedCopy full SHA for 8535aed
1 file changed
src/scanpy/plotting/_tools/__init__.py
@@ -1214,6 +1214,18 @@ def rank_genes_groups_violin( # noqa: PLR0913
1214
Size of the jitter points.
1215
{show_save_ax}
1216
1217
+ Examples
1218
+ --------
1219
+ Plot violin distributions of top-ranked genes per group.
1220
+
1221
+ .. plot::
1222
+ :context: close-figs
1223
1224
+ import scanpy as sc
1225
+ adata = sc.datasets.pbmc68k_reduced()
1226
+ sc.tl.rank_genes_groups(adata, "bulk_labels")
1227
+ sc.pl.rank_genes_groups_violin(adata, groups=["CD34+"], n_genes=5)
1228
1229
"""
1230
if key is None:
1231
key = "rank_genes_groups"
0 commit comments