Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions src/scanpy/plotting/_tools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1273,6 +1273,18 @@ def rank_genes_groups_violin( # noqa: PLR0913
Size of the jitter points.
{show_save_ax}

Examples
--------
Plot violin distributions of top-ranked genes per group.

.. plot::
:context: close-figs

import scanpy as sc
adata = sc.datasets.pbmc68k_reduced()
sc.tl.rank_genes_groups(adata, "bulk_labels")
sc.pl.rank_genes_groups_violin(adata, groups=["CD34+"], n_genes=5)

"""
if key is None:
key = "rank_genes_groups"
Expand Down
Loading