question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Default color ramp order

See original GitHub issue

As Schloss et al. shows that quantitative color maps normally have dominant dark-is-more effect, unless there is apparent variation in opacity.

The results suggest that if a design goal is to produce colormaps that match people’s inferred mappings and are robust to changes in background color, it is beneficial to use colormaps that will not appear to vary in opacity on any background color, and to encode larger quantities in darker colors.

I think we should consider two things:

1) Scheme config for config.range should support reverse. For example, many people may want to make their theme reverses the viridis color map by default. (Yes, people can always apply reverse in each spec, but that means that our config doesn’t really support this common theming use case.) Supported

  1. Re-consider our default "heatmap" scheme. (It should be reversed?) –

This may be considered as a breaking change, and thus may be harder to do than 1).
That said, I doubt if people really uses config.range.heatmap that often in Vega. (Vega-Lite’s rect and geoshape use heatmap range by default for color – and this is a good time to break it since we haven’t release 3.0)

FWIW, this example is driving me crazy every time I look at it. (Why is yellow the highest value?)

image

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
jheercommented, Dec 4, 2018

Regarding point (1), you can already do this using the extent parameter. To simply reverse an existing scheme, use "extent": [1,0].

I’m open to using a consistent color map (blues from [0.2, 1]) for all defaults. This might be considered a breaking change though so I will hold back for now. I’d also like to see the new palette that @domoritz mentions!

If you’re OK with the above, how about we close this issue, and raise the question of changing the default as a different issue to track.

1reaction
domoritzcommented, Dec 4, 2018

@jheer commented on the color scales today so he might be in favor. Also, I mentioned that Maureen designed a new color palette that might be interesting for us as well.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Modify default symbols and color ramps—Esri Maps for ...
Administrators can modify the default symbols and color ramps available to report designers ... green, blue, and alpha values for the line, in...
Read more >
Color Ramp
Rainbow : The default color ramp. Fire: Use these settings for a dark background. Far Fire: Especially for farfield plots on dark background....
Read more >
10 Plotting and Color in R | Exploratory Data Analysis with R
The default color schemes for most plots in R are horrendous. ... But, in order to do that, it's important to know a...
Read more >
Color Ramp in QGIS - GIS Stack Exchange
In the menu Settings - Style Manager you can see the tag "Color ramp". enter image description here. By clicking on the green...
Read more >
Esri Color Ramps Version 3.0
Your design may not require you to keep these default color assignments when you apply the color ramps. To reverse the color assignments,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found