We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1fce8f6 commit f417967Copy full SHA for f417967
1 file changed
src/scanpy/plotting/_tools/__init__.py
@@ -1291,6 +1291,18 @@ def rank_genes_groups_violin( # noqa: PLR0913
1291
Size of the jitter points.
1292
{show_save_ax}
1293
1294
+ Examples
1295
+ --------
1296
+ Plot violin distributions of top-ranked genes per group.
1297
+
1298
+ .. plot::
1299
+ :context: close-figs
1300
1301
+ import scanpy as sc
1302
+ adata = sc.datasets.pbmc68k_reduced()
1303
+ sc.tl.rank_genes_groups(adata, "bulk_labels")
1304
+ sc.pl.rank_genes_groups_violin(adata, groups=["CD34+"], n_genes=5)
1305
1306
"""
1307
if key is None:
1308
key = "rank_genes_groups"
0 commit comments