Automatic cmap for single color line with datashade = True
- Dominant language
- Python
- Stars
- 1.4k
- Forks
- 124
- Avg merge
- 1d 18h
- Merged PRs (30d)
- 1
Description
I was trying to change the color of a line in hvPlot with datashade=True, i thought it was as simple as passing the bokeh option line.opts('line_color' = 'white') but i got the following error : ValueError: Unexpected option ‘line_color’ for RGB type across all extensions. No similar options found.”.
The workaround is to add cmap = ['color'] argument to the hvPlot call(as discussed in here: https://discourse.holoviz.org/t/unexpected-option-line-color-for-rgb-type-across-all-extensions-no-similar-options-found/188).
So, it would be a nice little addition to hvPlot to do that automatically when passing a 'line_color' argument in opts when dealing with single color lines with datashade = True.
Contributor guide
Assessment
This issue has not been assessed yet.