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

make colorrange_scaled computation safe for inverting / sort-order-breaking scales #4884

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

asinghvi17
Copy link
Member

@asinghvi17 asinghvi17 commented Mar 21, 2025

Description

Fixes #4883

Wraps calls to apply_scale(scale, colorrange) in extrema so that the computed colorrange is robust to e.g. colorscale = -.

Not sure this needs a reference test given it's a bug on the Makie end of things.

Type of change

Delete options that do not apply:

  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • Added an entry in CHANGELOG.md (for new features and breaking changes)
  • Added or changed relevant sections in the documentation
  • Added unit tests for new algorithms, conversion methods, etc.
  • Added reference image tests for new plotting functions, recipes, visual options, etc.

@asinghvi17 asinghvi17 marked this pull request as ready for review March 21, 2025 19:07
@asinghvi17 asinghvi17 changed the title make apply_scale safe for inverting / sort-order-breaking scales make colorrange_scaled computation safe for inverting / sort-order-breaking scales Mar 21, 2025
@MakieBot
Copy link
Collaborator

MakieBot commented Mar 21, 2025

Benchmark Results

SHA: 6f282491b65c8abc757f02f6faa85442fdc1f432

Warning

These results are subject to substantial noise because GitHub's CI runs on shared machines that are not ideally suited for benchmarking.

GLMakie
CairoMakie
WGLMakie

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

Successfully merging this pull request may close these issues.

colorscale=- results in a black image
3 participants