biolab / orange3

🍊 :bar_chart: :bulb: Orange: Interactive data analysis
https://orangedatamining.com
Other
4.89k stars 1.02k forks source link

Gradient Color Picker #1924

Closed sirjamesgray closed 4 years ago

sirjamesgray commented 7 years ago
Orange version

3.3.5

Feature Request:

It would be convenient to have a custom gradient picker for better customization of output visualizations.

This applies to any widgets that use color gradients in their visualizations. (distance map is used in the example image)

screen shot 2017-01-13 at 5 59 39 pm

Hope this is possible! :) I imagine there might be some open source color pickers out there, as long as the underlying libraries support manual color input. I would go ahead and look for some, but I'm not the most code-literate, hopefully someone else knows an optimal way to implement this.

markotoplak commented 5 years ago

A set of useful perceptually uniform colormaps for plotting scientific data: http://colorcet.pyviz.org

janezd commented 5 years ago

We decided to add this functionality where it's missing (that is, widgets that do not show colors corresponding to values of variables, like heatmap and distance map).

On the other hand, @markotoplak said (and provided a link) that there are some well-designed gradients that should be used, and @BlazZupan concurred that the user shouldn't be allowed to pick arbitrary colors. We therefore also decided to redesign the existing Color widget to list possible options instead of letting the user pick arbitrary colors -- for numeric attributes. For discrete, I still believe that arbitrary colors should be allowed since there may be natural colors for some cases (e.g. pink and blue for gender, red and green for bad and good, colors corresponding to different companies ...)

janezd commented 4 years ago

I checked colorcet. I wouldn't add the whole package as requirement because it needlessly adds a few megabytes (mostly example images) and the lists it provides are not in appropriate format for us so we would have to convert them anyway. I would just "borrow" its palettes.

We need to decide which palettes to offer. From https://colorcet.holoviz.org/user_guide/Continuous.html, I would take

Named

named

Diverging

diverging

Color blind

colorblind

Ignore the named palettes in diverging and color blind because they already appear in named.

I skipped cyclic palettes because we don't need them. (Do we?)

RFC

borondics commented 4 years ago

Rainbow is widely used for natural sciences (I think it was a default in some data analysis program or Matlab and therefore became a historical thing).

CET_CBL2 and CET_CBTL2 seem more color balanced to me...

Cyclic ones are not too useful unless there are many curves like for Orange Spectroscopy and one needs to cycle through them.

Personally, I think it would be great if the color schemes and palettes were uniform across Orange and all the Toolboxes and the super-flexibility here might be just something cool, but not too useful.