File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -949,7 +949,7 @@ def show(
949
949
if wanted_labels_on_this_cs :
950
950
if (table := params_copy .table_name ) is not None :
951
951
colors = sc .get .obs_df (sdata [table ], params_copy .color )
952
- if isinstance (colors .dtype , pd .CategoricalDtype ):
952
+ if isinstance (colors [ params_copy . color ] .dtype , pd .CategoricalDtype ):
953
953
_maybe_set_colors (
954
954
source = sdata [table ],
955
955
target = sdata [table ],
Original file line number Diff line number Diff line change @@ -441,7 +441,7 @@ def _render_points(
441
441
if col_for_color is not None :
442
442
cols = sc .get .obs_df (adata , col_for_color )
443
443
# maybe set color based on type
444
- if isinstance (cols .dtype , pd .CategoricalDtype ):
444
+ if isinstance (cols [ col_for_color ] .dtype , pd .CategoricalDtype ):
445
445
_maybe_set_colors (
446
446
source = adata ,
447
447
target = adata ,
You can’t perform that action at this time.
0 commit comments