Open felixcremer opened 3 weeks ago
ah the observable type is probably the issue here in terms of dispatch. #720 should make this a non-issue since we would ideally not be relying on argument types at the user level...
Actually, maybe julia> data = Observable{AbstractDimArray}(dd)
would work?
No that does not make a difference. Also just using Observable(dd)
which is of type DimMatrix does nothing.
We just don't have any dispatch on Observables{<:AbstractDimArray}
, basically I just forgot to add it.
But also something in Makie changed, because it used to work with Makie 0.20 to plot a DimArray even in an Observable{Any}. But Adding a dispatch on Observables{<:AbstractDimArray} should help for now.
I think that goes back to the expand_dimensions again :D
I made some comments on that PR... I'm not sure the expand_dimensions
approach can do half the things we are doing currently
https://github.com/rafaqz/DimensionalData.jl/issues/720#issuecomment-2158526784
Like its probably worth doing anyway but we might still need our own method dispatch anyway for other reasons
In Makie 0.21 plotting an Observable of a DimArray ignores the Dimension information and also the Axis labels are not shown. This works with Makie 0.20 both with the current DimensionalData 0.27.3