-
-
Notifications
You must be signed in to change notification settings - Fork 312
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
DataInspector: fix an attribute extraction bug for heatmaps & images #3260
Conversation
I've updated the PR |
Does everything look good now or are there other things I should change or add? |
@ffreyer i think so right? |
What's the state with heatmap and image now, after |
Yeah heatmap + image should always have calculated color, IF they map numbers to a color via colormap |
Do you have a preference for the error message? I was going to go with |
Since this should only be called for Heatmap/Image which always should have a |
If the colorrange attribute is left at default it returns MakieCore.Automatic; the method for `get` that was called at show_imagelike does not check for this type so the ensuing call to interpolated_getindex would fail. The colorrange is now generically extracted and calculated_colors[].colorrange[] is preferred as it contains the actual range. Fixes MakieOrg#3101
How do things look now? |
Thank you!! :) |
Description
Fixes #3101
If the
colorrange
attribute is left at default it returnsMakieCore.Automatic
; the method forget
that was called atshow_imagelike
does not check for this type so the ensuing call tointerpolated_getindex
would fail.The colorrange is now generically extracted and
calculated_colors[].colorrange[]
is preferred as it contains the actual range.Type of change