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

How set equal axis aspect ratio #949

Open
veliteq opened this issue May 8, 2024 · 2 comments
Open

How set equal axis aspect ratio #949

veliteq opened this issue May 8, 2024 · 2 comments
Labels
question Further information is requested

Comments

@veliteq
Copy link

veliteq commented May 8, 2024

@leeoniya Hi, thanks for this amazing library.

How to set and adjust plots with equal axis aspect ratios?

sphx_glr_axis_equal_demo_001

@leeoniya
Copy link
Owner

leeoniya commented May 8, 2024

each scale/axis and plot width/height can be set independently, so while this is possible, how difficult this will be depends on what other uplot features you need to continue working (zoom, resize, legend toggle, etc.). you cannot have a fixed aspect ratio and still have everything work as it does; compromises have to be made somewhere.

you will need to describe your specific requirements and provide example data to get further advice.

@leeoniya leeoniya added the question Further information is requested label May 8, 2024
@veliteq
Copy link
Author

veliteq commented May 9, 2024

provide example data to get further advice

https://jsfiddle.net/K_Korovin/b5rfxutg/62/

The dot shape should always be a square when zoom, resize and mousewheel zoom.

Also in this example, for some reason, the data on the right side of the square is not displayed.

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

No branches or pull requests

2 participants