JuliaGraphics / Colors.jl

Color manipulation utilities for Julia
Other
203 stars 45 forks source link

Update documentation for colormaps #515

Closed kimikage closed 3 years ago

kimikage commented 3 years ago

This adds visual examples for sequential_palette.

sequential_palette

Closes #265

codecov[bot] commented 3 years ago

Codecov Report

Merging #515 (5fef4fc) into master (9b57362) will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #515   +/-   ##
=======================================
  Coverage   94.72%   94.72%           
=======================================
  Files           9        9           
  Lines        1213     1213           
=======================================
  Hits         1149     1149           
  Misses         64       64           

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 9b57362...5fef4fc. Read the comment docs.

kimikage commented 3 years ago

I had originally planned to update the documentation after #509. However, now I think it's better to update the documentation first to check the effect of the hue interpolation fix in #509.

kimikage commented 3 years ago

Probably, ColorSchemes.jl is the most comprehensive and widely used package in visualization. As a matter of fact, we no longer have situations where we must use the colormap. Also, modern perceptual color maps, like "Viridis", no longer use the Luv color space. (Even the CAM02-UCS is already becoming outdated.)

So, I think we should regard colormap as a "simple" tool which can be used without loading the plot library. I'm also starting to wonder if it might be a good idea to add predefined diverging colormaps, mimicking ColorBrewer (i.e. "Spectral", "RdYlGn", "PRGn", "PiYG", and "BrBG").