-
-
Notifications
You must be signed in to change notification settings - Fork 291
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
heatmap
+ colormap=Makie.Categorical
results in incorrect colorrange
#3827
Comments
#3762 should fix this. |
Cool! |
I think this is correct, since the transparent values are done by inserting NaNs.... |
That colorbar is pretty close to what I would have expected. It might be helpful for you to know more about my actual use case: I have an |
How does colorrange work with categorical colorbars? Especially in cases where the categories are not ordered or a category is not in the data but should appear on the axis. |
I have tested against the since-released Makie v0.20.12 and v0.21.0 and get the output promised above. Feel free to close this issue if the nans are better handled separately. |
are you running newest version (version from docs) ?
can you reproduce the bug with a fresh environment ? (
]activate --temp; add Makie
)What platform + GPU are you on?
versioninfo()
:I was attempting to use the experimental categorical colorbars and found some incorrect behavior.
I ran the following to set up a fresh environment
The following code without a categorical colorbar results in a figure as expected:
However, using
colormap=Makie.Categorical
results in a colorbar whosecolorrange
does not correspond to the data range.The colorbar is labeled from 1 to 4, none of which appear in the data.
The text was updated successfully, but these errors were encountered: