Skip to content

Commit

Permalink
add Image to makie convert
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaqz committed Dec 8, 2023
1 parent f25fb78 commit 6df4dfc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ext/DimensionalDataMakie.jl
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,11 @@ Makie.plottype(A::AbstractDimArray{<:Any,2}) = Makie.Heatmap
Makie.plottype(A::AbstractDimArray{<:Any,3}) = Makie.Volume

# Conversions
function Makie.convert_arguments(t::Type{<:Makie.Image}, A::AbstractDimArray{<:Any,2})
A1 = _prepare_for_makie(A)
xs, ys = map(parent, lookup(A1))
return xs, ys, last(Makie.convert_arguments(t, parent(A1)))
end
function Makie.convert_arguments(t::Makie.PointBased, A::AbstractDimArray{<:Any,1})
A = _prepare_for_makie(A)
xs = parent(lookup(A, 1))
Expand Down

0 comments on commit 6df4dfc

Please sign in to comment.