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

Adjust darkness for various elements #525

Closed
alexsb opened this issue Dec 13, 2021 · 5 comments · Fixed by #514
Closed

Adjust darkness for various elements #525

alexsb opened this issue Dec 13, 2021 · 5 comments · Fixed by #514
Assignees
Labels
type: feature New feature or request

Comments

@alexsb
Copy link
Contributor

alexsb commented Dec 13, 2021

Here's an image with the new proposed ticks:

image

Two things stand out to me: the dots and ticks aren't as prominent as the bars. And the NAN dashes are as prominent as the dots and tick. Both aren't great. Hence:

  • We should increase the darkness of the dots and ticks. They’re the same color as the bars, but have much less body. When ticks are shown in an aggregated cell, they should be lighter/more transparent though, so that we can see overplotting.

  • We should reduce the darkness of the NAN dashes and/or reduce the "height" of the dashes so that they are thinner.

@sgratzl
Copy link
Member

sgratzl commented Dec 14, 2021

note: besides the N/A indicators, the colors are driven by the color of the column

@alexsb
Copy link
Contributor Author

alexsb commented Dec 14, 2021

Good point; we need a systematic solution for this.

In our style guide we distinguish between lark mark and small mark colors:

image

So the marks should use the hue given by the column, but adjust the darkness according to the mark size.

@alexsb
Copy link
Contributor Author

alexsb commented Dec 23, 2021

We agreed on the following solution:

  • A cell has a given color, for simplicity assume it is given a saturation value of 0.5
  • That value is either based on a color for all marks in the column, or is driven by a color mapping.
  • For a large mark, the saturation value is decreased by a value N, which we will have to experimentally determine, but a good starting point would be to decrease saturation by 20%
  • For a small mark (dot, dash), the saturation value is increased by a value M, again, try increasing by 20% to start.
  • The NaN/None dash should be thinner and more desaturated, maybe at the same level as the large mark.

We could also experiment with a bit of changing saturation for bars so that smaller bars are more saturated and longer bars are less saturated. But that change should be small and I'm not sure whether it'll work.

@sgratzl
Copy link
Member

sgratzl commented Dec 23, 2021

note: since gray values are in the form hsl(0,0,76%) this saturation change has no effect on pure gray columns.

@alexsb
Copy link
Contributor Author

alexsb commented Dec 23, 2021 via email

@sgratzl sgratzl linked a pull request Jan 21, 2022 that will close this issue
3 tasks
@sgratzl sgratzl closed this as completed Jan 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants