Skip to content

Commit db82da8

Browse files
authored
Fix docstrings and remove dead code across public API (#583)
1 parent 7817c38 commit db82da8

File tree

5 files changed

+136
-123
lines changed

5 files changed

+136
-123
lines changed

src/spatialdata_plot/pl/_palette.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -594,8 +594,9 @@ def make_palette_from_data(
594594
element
595595
Name of a shapes or points element in *sdata*.
596596
color
597-
Column name containing categorical labels (in the element itself
598-
for points, or in the linked table for shapes/labels).
597+
Column name containing categorical labels. The column is first
598+
looked up directly on the element (both for shapes and points);
599+
if not found there, it falls back to the linked AnnData table.
599600
palette
600601
Source colours. Accepts the same values as
601602
:func:`make_palette` (*None*, a list, a named palette, or a

0 commit comments

Comments
 (0)