Skip to content

How can I lock the y axis ticks to the same pixel spacing as the x axis? #10127

Answered by NickStull
NickStull asked this question in Q&A
Discussion options

You must be logged in to vote

Figured it out.

I realized that the aspect ratio is defaulted to 2. Of course if we have 0-10 on both x and y we would want that aspect ratio to be 1. But for what I am doing I need it to be flexible as we don't know what the range is for either the x or the y. All we needed to do is Find the range of x and the range of y, divide x by y, set that to a variable, then set the aspect ratio in options to that variable.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by NickStull
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant