MakieOrg / Makie.jl

Interactive data visualizations and plotting in Julia
https://docs.makie.org/stable
MIT License
2.34k stars 291 forks source link

Highclip issue when changing it #2876

Open asinghvi17 opened 1 year ago

asinghvi17 commented 1 year ago
using Makie
using GLMakie

hc = Observable{Any}(:red)
lc = Observable{Any}(:blue)
f, a, p = heatmap(rand(10, 10); highclip = hc, lowclip = lc, colorrange = (0.25, 0.75))
p.highclip # Observable{Any}
hc[] = nothing # error
p.highclip[] = nothing # error

this is because the lift was having issues. Have patched this locally and will push it up to a PR.

It works with Cairo, but GL backends will still have issues. Set the high/low clip to be the first and last of to_colormap(plot.colormap[]) in order to get around this while maintaining the desired behaviour.

ffreyer commented 3 months ago

This doesn't error anymore but the updates aren't tracked in GLMakie so it doesn't produce a different image until something else triggers an update.