Skip to content
Open
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions docs/release-notes/4078.docs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add a rendered example plot to {func}`~scanpy.pl.scatter` showing a QC scatter using `pbmc68k_reduced` {smaller}`C Gao`
11 changes: 11 additions & 0 deletions src/scanpy/plotting/_anndata.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,17 @@ def scatter( # noqa: PLR0913
-------
If `show==False` a :class:`~matplotlib.axes.Axes` or a list of it.
Examples
--------
Plot per-cell total counts versus detected genes, colored by mitochondrial fraction.
.. plot::
:context: close-figs
import scanpy as sc
adata = sc.datasets.pbmc68k_reduced()
sc.pl.scatter(adata, x="n_counts", y="n_genes", color="percent_mito")
"""
# color can be a obs column name or a matplotlib color specification (or a collection thereof)
if color is not None:
Expand Down
Loading