Skip to content

Commit b3a7805

Browse files
author
Sonja Stockhaus
committed
docstrings
1 parent 14e166d commit b3a7805

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/spatialdata_plot/pl/basic.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,9 @@ def render_shapes(
182182
layer
183183
Key in :attr:`anndata.AnnData.layers` or `None` for :attr:`anndata.AnnData.X`.
184184
palette
185-
Palette for discrete annotations, see :class:`matplotlib.colors.Colormap`.
186-
Must contain valid color names.
185+
Palette for discrete annotations. List of valid color names that should be used
186+
for the categories (all or as specified by `groups`). For a single category,
187+
a valid color name can be given as string.
187188
cmap
188189
Colormap for continuous annotations, see :class:`matplotlib.colors.Colormap`.
189190
If no palette is given and `color` refers to a categorical, the colors are
@@ -261,8 +262,9 @@ def render_points(
261262
size
262263
Value to scale points.
263264
palette
264-
Palette for discrete annotations, see :class:`matplotlib.colors.Colormap`.
265-
Must contain valid color names.
265+
Palette for discrete annotations. List of valid color names that should be used
266+
for the categories (all or as specified by `groups`). For a single category,
267+
a valid color name can be given as string.
266268
cmap
267269
Colormap for continuous annotations, see :class:`matplotlib.colors.Colormap`.
268270
If no palette is given and `color` refers to a categorical, the colors are

0 commit comments

Comments
 (0)