Description:
Categorizing data is very easy with the hv.dim().categorize() function. However, it has the disadvantage that it doesn't create a legend as you would normally expect it to be. I tried this for the hv.Scatter, but I assume it's similar for other plot types as well.
In the example below, the first plot shows a categorization using the cmap option and this creates a legend. The second plot uses the hv.dim().categorize() function and this doesn't create a legend.
The cmap would be a good workaround, but I would also like to categorize using the marker shapes as shown in plot 3. Since there is no mapping option for the marker shapes I use the hv.dim().categorize() function. But it would be great to have a legend added.
Packages:
Description: Categorizing data is very easy with the hv.dim().categorize() function. However, it has the disadvantage that it doesn't create a legend as you would normally expect it to be. I tried this for the hv.Scatter, but I assume it's similar for other plot types as well. In the example below, the first plot shows a categorization using the cmap option and this creates a legend. The second plot uses the hv.dim().categorize() function and this doesn't create a legend. The cmap would be a good workaround, but I would also like to categorize using the marker shapes as shown in plot 3. Since there is no mapping option for the marker shapes I use the hv.dim().categorize() function. But it would be great to have a legend added.
Example: