How do you specify color maps for categorical (e.g. string) data?
import xarray as xr
import hvplot.xarray
da = xr.DataArray([["a", "b"],["b", "b"]], dims=("x", "y"))
da.hvplot.image()
This yields an error TypeError: unsupported operand type(s) for -=: 'str' and 'float'
, but I suspect one is somehow able to map the values to colors? I hoped to specify a color_key={"a": "#ffffff", "b": "#000000"}
(which seems to be an option for datashader), but the argument is not recognized. Is there a different approach?