We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1306a22 commit ce26519Copy full SHA for ce26519
src/spatialdata_plot/pl/render.py
@@ -423,7 +423,7 @@ def _render_images(
423
if render_params.palette is not None and n_channels != len(render_params.palette):
424
raise ValueError("If 'palette' is provided, its length must match the number of channels.")
425
426
- if n_channels == 3:
+ if n_channels > 1: # to capture n_channels = 3 and custom number cases
427
layer = img.sel(c=channels).copy(deep=True)
428
429
channel_colors: list[str] | Any
0 commit comments