MakieOrg / GeoMakie.jl

Geographical plotting utilities for Makie.jl
https://geo.makie.org
MIT License
161 stars 23 forks source link

meshimage vs image #256

Open aplavin opened 1 week ago

aplavin commented 1 week ago

meshimage claims to b "the same as image, but more efficient", but is it?.. image The latter doesn't seem correct no matter how you look at it: axis ranges and actual sizes don't agree.

asinghvi17 commented 1 week ago

Axis ranges are actually the same but meshimage doesn't have tightlimits enabled. That would be an easy thing to add.

I guess this is down to the rotr90 again. I guess we could add a switch and slowly deprecate that behavior. It's not that hard to do the rotation in the uvs...

I think your image also has interpolation enabled? Meshimage can't do that since it's using a texture...

aplavin commented 1 week ago

By the axis ranges issue I mean that the horizontal axis for meshimage goes from 0 to 10, but clearly displays 100 image pixels and not 10. The opposite is true for the vertical axis. Yeah, seems to be the 90-deg rotation issue: meshimage does it for the array content, but not for axis ranges.