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

set aspect ratio

Open mgkuhn opened this issue 3 years ago • 0 comments

The aspect kwarg to imshow() currently appears to support only the values

  • :none, which sets the aspect ratio of pixels automatically such that the window is kept filled as it is resized, and
  • :auto (or any other value really), which sets the aspect ratio of pixels to 1 (square pixels).

If I have an image with non-square pixels of a known aspect ratio, e.g. where the horizontal resolution is 1.6 times the vertical resolution, it would be useful to be able to specify a numeric aspect ratio (either for the entire image or for one pixel).

mgkuhn avatar Jul 01 '22 18:07 mgkuhn