Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plot recipes are still eating axis kwargs #929

Open
asinghvi17 opened this issue Feb 17, 2025 · 2 comments
Open

Plot recipes are still eating axis kwargs #929

asinghvi17 opened this issue Feb 17, 2025 · 2 comments
Assignees
Labels
bug Something isn't working plotting

Comments

@asinghvi17
Copy link
Collaborator

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

the title doesn't show up

@asinghvi17 asinghvi17 added the bug Something isn't working label Feb 17, 2025
@asinghvi17 asinghvi17 self-assigned this Feb 17, 2025
@rafaqz
Copy link
Owner

rafaqz commented Feb 17, 2025

Think this is a DD issue

@rafaqz rafaqz transferred this issue from rafaqz/Rasters.jl Feb 17, 2025
@asinghvi17
Copy link
Collaborator Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working plotting
Projects
None yet
Development

No branches or pull requests

2 participants