Skip to content

Commit

Permalink
check cmap type before comparing to categories
Browse files Browse the repository at this point in the history
  • Loading branch information
Azaya89 committed Dec 3, 2024
1 parent 19206c5 commit e34111c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hvplot/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -1485,7 +1485,7 @@ def _process_style(self, kwds, plot_opts):
if 'color' in style_opts:
color = style_opts['color']
elif not isinstance(cmap, dict):
if cmap and any(c in cmap for c in categories):
if isinstance(cmap, str) and any(c in cmap for c in categories):
color = process_cmap(cmap or self._default_cmaps['categorical'], categorical=True)
else:
color = cmap
Expand Down

0 comments on commit e34111c

Please sign in to comment.