DimensionalData.jl
DimensionalData.jl copied to clipboard
Plot recipes are still eating `axis` kwargs
using Makie, Rasters
r1 = Raster(rand(X(10), Y(10))
heatmap(r1; axis = (; title = "Your title"))
the title doesn't show up
Think this is a DD issue
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