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

Enforcing 1:1 Aspect Ratio #143

Open
FreyaHolmer opened this issue Jan 27, 2024 · 0 comments
Open

Enforcing 1:1 Aspect Ratio #143

FreyaHolmer opened this issue Jan 27, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@FreyaHolmer
Copy link

What's your feature?

It would be nice if there was a way to ensure the aspect ratio is preserved when drawing graphs where it's important the x and y scales match. For example, when drawing circular arcs, it currently stretches/squishes it around:

image

The combination of a hardcoded aspect ratio of the plot window/box, and no way to auto-set the plot bounds based on that aspect ratio to ensure a 1:1 ratio, makes it really hard to guess what values you need for the bounds in order to make the x and y scale 1:1

There are many ways to solve this, but the easiest one is probably to provide an alternate bounds syntax where you specify the x and y center, as well as the height of the bounds, and then the width is auto-calculated to ensure the aspect ratio is matched so that the x and y plot scales are 1:1

For example, with a center of x=0, y=0 and a height of 2, it would auto-calculate the width like this:

image

Any related problems?

No response

Additional context?

No response

@FreyaHolmer FreyaHolmer added the enhancement New feature or request label Jan 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant