Skip to content

set aspect ratio #271

Description

@mgkuhn

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions