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

Makie plot of a two dimensional DimArray should use the right aspect automatically #575

Open
felixcremer opened this issue Dec 8, 2023 · 2 comments
Labels

Comments

@felixcremer
Copy link
Contributor

When I plot a Raster and then change the window size I can end up with a very stretched version of the plot
makiestretched
I can fix this by calling ax.aspect = DataAspect() which gives the image below.
makiedataaspect

I think it would be good to automatically fix the Aspect of the plot, but I am not sure, whether DataAspect is the right call or whether we could derive a proper aspect ratio from the data or the dimension information.

@rafaqz
Copy link
Owner

rafaqz commented Dec 8, 2023

Im also not sure what makes sense as a default here

@rafaqz
Copy link
Owner

rafaqz commented Dec 11, 2023

Can we set this default in Rasters.j but not Makie.jl?

(I wish we could defined Attributes in convert_arguments...)

@rafaqz rafaqz added the plotting label Feb 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants