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

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

Open felixcremer opened this issue 1 year ago • 5 comments

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.

felixcremer avatar Dec 08 '23 16:12 felixcremer

Im also not sure what makes sense as a default here

rafaqz avatar Dec 08 '23 21:12 rafaqz

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

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

rafaqz avatar Dec 11 '23 11:12 rafaqz