We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1bd9237 commit da69a42Copy full SHA for da69a42
src/spatialdata_plot/pl/utils.py
@@ -811,7 +811,7 @@ def _map_color_seg(
811
if isinstance(color_vector, pd.Series):
812
color_vector = color_vector.to_numpy()
813
# normalize only the not nan values, else the whole array would contain only nan values
814
- normed_color_vector = color_vector.copy()
+ normed_color_vector = color_vector.copy().astype(float)
815
normed_color_vector[~np.isnan(normed_color_vector)] = cmap_params.norm(
816
normed_color_vector[~np.isnan(normed_color_vector)]
817
)
0 commit comments