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

set aspect ratio #271

Open
mgkuhn opened this issue Jul 1, 2022 · 0 comments
Open

set aspect ratio #271

mgkuhn opened this issue Jul 1, 2022 · 0 comments

Comments

@mgkuhn
Copy link

mgkuhn commented Jul 1, 2022

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant