Skip to content

fix: discrete log color sampling: build continuous log CTF before samp…#75

Merged
jourdain merged 1 commit intoKitware:masterfrom
patrickoleary:fix/log-sampling
May 1, 2026
Merged

fix: discrete log color sampling: build continuous log CTF before samp…#75
jourdain merged 1 commit intoKitware:masterfrom
patrickoleary:fix/log-sampling

Conversation

@patrickoleary
Copy link
Copy Markdown
Member

Fix discrete log color sampling - Change sampling as we did with symlog

  • Build a continuous log CTF (256 samples uniform in log space) before sampling discrete band colors, matching the pattern used in the symlog fix
  • Discrete bands now sample from this log CTF instead of directly from the linear CTF with manual position mapping, ensuring colorbar and 3D rendering colors match
  • Make eps_lin relative to data_range to avoid overlap/bleed issues at extreme data scales

Test small numbers and big numbers

log-sampling

closes #74

@patrickoleary patrickoleary changed the title Fix discrete log color sampling: build continuous log CTF before samp… fix: discrete log color sampling: build continuous log CTF before samp… Apr 30, 2026
@jourdain jourdain merged commit c54885a into Kitware:master May 1, 2026
1 check passed
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.

Colorbar for discrete colormap in log scale

3 participants