Skip to content

Automatic cmap for single color line with datashade = True #415

@RobertoEnC

Description

@RobertoEnC

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions