Skip to content

Functions to map floats to RGB values #5168

Open
@ghproek

Description

@ghproek

It would be useful if Plotly exposed functions to map floats, e.g. values in [0,1], to corresponding RGB strings formatted as 'rgb(255, 0, 0)'. There are lots of use cases for this. For example, if you want to plot a network where each edge is colored according to a weight between 0 and 1 using a continuous color scale. The only way I know to do this right now is to make a separate trace for each edge in the graph and specify its color manually.

Metadata

Metadata

Assignees

Labels

P3backlogfeaturesomething new

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions