Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set colormap bounds to data range for better contrast #313

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

drinkablebreeze
Copy link

Closes #311 by scaling the colormap to the range of the data, improving contrast.

Current Behavior

With the range of the data set to [0, num people] there is low color contrast when there is less difference in availability between possible meeting times. E.g. if for all times only about half of people are available, the colors will all be close to the center of the colormap's full range.

A pro of this behavior is that it makes it obvious if there is low consensus about the best times.

However, since the goal of crab.fit is to help people decide on the best time, that should probably be the priority. Scaling the colormap to the range of the data makes this easier.

Screenshots

At the worst times, 2/9 people are available. At best it's 5/9. Without scaling the colormap to match the data it's difficult to see the difference between the times.

Before:
crabfit_low_contrast

After:
crabfit_higher_contrast

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Colormap not scaled to min/max of number of people that are available
1 participant