facebookresearch / hiplot

HiPlot makes understanding high dimensional data easy
https://facebookresearch.github.io/hiplot/
MIT License
2.75k stars 143 forks source link

Color Gradient #186

Closed qo4on closed 3 years ago

qo4on commented 3 years ago

Is it possible to set color gradient (for example from blue to red according to axis values) instead of random colors?

image

danthe3rd commented 3 years ago

Hi @qo4on You can do several things:

  1. Chose which column you want to color by (right click on the column name -> Color by)
  2. Change the Colormap used with experiment.colormap = "schemeYlOrRd" (the colormap names are from https://github.com/d3/d3-scale-chromatic)

I hope that helps :)

qo4on commented 3 years ago

Thank you. Unfortunately most of the gradient color schemes there have white or low saturated colors which are not very visible. It would be better to set simple 2 or 3 color gradient based on rgb values and set which color to be on top when overlapping.

danthe3rd commented 3 years ago

Thanks for the feedback, that's very true - I'll try to improve that in the future. In the meantime, I think interpolatePlasma is the closest to the image you posted initially.