DimensionalData.jl icon indicating copy to clipboard operation
DimensionalData.jl copied to clipboard

Plot recipes are still eating `axis` kwargs

Open asinghvi17 opened this issue 10 months ago • 2 comments

using Makie, Rasters
r1 = Raster(rand(X(10), Y(10))
heatmap(r1; axis = (; title = "Your title"))

the title doesn't show up

asinghvi17 avatar Feb 17 '25 22:02 asinghvi17

Think this is a DD issue

rafaqz avatar Feb 17 '25 22:02 rafaqz

can confirm...even things like axis labels if set explicitly are not respected. mwe:

earth_img = rand(10, 10)

earth_ras = DimArray(earth_img |> rotr90, (X(LinRange(-180, 180, size(earth_img, 2)+1)[1:end-1]), Y(LinRange(-90, 90, size(earth_img, 1)+1)[1:end-1])))


fig, ax, plt = heatmap(
    earth_ras; 
    axis = (; 
        aspect = DataAspect(),
        xticks = Makie.WilkinsonTicks(6; k_min = 4),
        yticks = Makie.WilkinsonTicks(6; k_min = 4),
        xlabel = "",
        ylabel = "",
    )
)

fig

asinghvi17 avatar Feb 19 '25 19:02 asinghvi17