File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 29
29
OutlineParams ,
30
30
ScalebarParams ,
31
31
_decorate_axs ,
32
- _get_colors_for_categorical_obs ,
33
32
_get_linear_colormap ,
34
33
_map_color_seg ,
35
34
_maybe_set_colors ,
@@ -424,14 +423,12 @@ def _render_images(
424
423
if render_params .palette is not None and n_channels != len (render_params .palette ):
425
424
raise ValueError ("If 'palette' is provided, its length must match the number of channels." )
426
425
427
- if n_channels > 1 :
426
+ if n_channels == 3 :
428
427
layer = img .sel (c = channels ).copy (deep = True )
429
428
430
429
channel_colors : list [str ] | Any
431
430
if render_params .palette is None :
432
- channel_colors = _get_colors_for_categorical_obs (
433
- layer .coords ["c" ].values .tolist (), palette = render_params .cmap_params [0 ].cmap
434
- )
431
+ channel_colors = ["#ff0000ff" , "#00ff00ff" , "#0000ffff" ]
435
432
else :
436
433
channel_colors = render_params .palette
437
434
You can’t perform that action at this time.
0 commit comments