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

[ENH] Gradient selection/parameters widget #4596

Merged
merged 4 commits into from
May 8, 2020

Conversation

ales-erjavec
Copy link
Contributor

@ales-erjavec ales-erjavec commented Mar 30, 2020

Issue

Builds on gh-4593

Description of changes

Extract a color map selection combo box and thresholding sliders into a utility widget.

Includes
  • Code changes
  • Tests
  • Documentation

@ales-erjavec ales-erjavec changed the title [ENH] Gradient selection/parameters widget [NOMERGE][ENH] Gradient selection/parameters widget Mar 30, 2020
@ales-erjavec ales-erjavec force-pushed the gradient-selection-widget branch 2 times, most recently from e4fa0f9 to 667eba3 Compare March 31, 2020 10:42
@codecov
Copy link

codecov bot commented Mar 31, 2020

Codecov Report

Merging #4596 into master will increase coverage by 0.02%.
The diff coverage is 97.16%.

@@            Coverage Diff             @@
##           master    #4596      +/-   ##
==========================================
+ Coverage   83.66%   83.68%   +0.02%     
==========================================
  Files         280      280              
  Lines       56322    56390      +68     
==========================================
+ Hits        47121    47192      +71     
+ Misses       9201     9198       -3     

@ales-erjavec ales-erjavec force-pushed the gradient-selection-widget branch 2 times, most recently from 4ab3628 to 2e7794d Compare April 14, 2020 09:27
@ales-erjavec ales-erjavec changed the title [NOMERGE][ENH] Gradient selection/parameters widget [ENH] Gradient selection/parameters widget Apr 14, 2020
@janezd janezd self-assigned this Apr 17, 2020
@janezd
Copy link
Contributor

janezd commented Apr 17, 2020

Heatmap centers the scale if the palette is diverging.

maxoff = max(abs(center - lt), abs(center - ht))

Moving just one slider (for diverging palettes) has no effect - adjustment of colors is equal to the smaller of the two sliders' adjustments.

  • Do nothing and we merge as it is?
  • In heatmap, lock the sliders so that moving one also moves the other? (More difficult to implement. Inconsistent, thus defeats the purpose.)
  • Same as previous, but for all widgets that use ColorGradientSelection?

@janezd
Copy link
Contributor

janezd commented May 8, 2020

@ales-erjavec, I see I haven't merged this because I'm waiting for your response. I'm just pinging.

"Merge as it is" is also a valid response.

@ales-erjavec
Copy link
Contributor Author

Sorry. I guess 'Merge as is'

@janezd janezd merged commit 4a0066c into biolab:master May 8, 2020
@ales-erjavec ales-erjavec deleted the gradient-selection-widget branch August 5, 2020 11:43
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.

2 participants