rafaqz / DimensionalData.jl

Named dimensions and indexing for julia arrays and other data
https://rafaqz.github.io/DimensionalData.jl/stable/
MIT License
269 stars 37 forks source link

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

Open felixcremer opened 8 months ago

felixcremer commented 8 months ago

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 commented 8 months ago

Im also not sure what makes sense as a default here

rafaqz commented 8 months ago

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

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