File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1147,6 +1147,9 @@ def show(
11471147 legend_fontoutline = legend_params .get ("fontoutline" , legend_fontoutline )
11481148 na_in_legend = legend_params .get ("na_in_legend" , na_in_legend )
11491149
1150+ if legend_loc == "on data" :
1151+ raise ValueError ("legend_loc='on data' is not supported in spatialdata-plot." )
1152+
11501153 legend_params_obj = LegendParams (
11511154 legend_fontsize = legend_fontsize ,
11521155 legend_fontweight = legend_fontweight ,
Original file line number Diff line number Diff line change @@ -1153,12 +1153,6 @@ def _draw_channel_legend(
11531153 palette_dict [entry .channel_name ] = entry .color_hex
11541154
11551155 legend_loc = legend_params .legend_loc
1156- if legend_loc == "on data" :
1157- logger .warning (
1158- "legend_loc='on data' is not supported for channel legends (no scatter coordinates); "
1159- "falling back to 'right margin'."
1160- )
1161- legend_loc = "right margin"
11621156
11631157 categories = pd .Categorical (list (palette_dict ))
11641158
You can’t perform that action at this time.
0 commit comments