-
As screen sizes change the x-axis scales appropriately. I would like the y axis to scale with it. For example: if I have a scale of 0-10 with a tick at each whole number, if my screen size is 1000px each tick is approximately 100 px apart. In that same scenario despite if I have a scale of 0-10 or 0-100 on the y axis, I would like them all to be 100px apart to match the responsiveness of the x axis. Another way to think about it, if both axes have a scale of 0-10 the canvas should be a square. Appreciate any help at all. Edit: I suppose maybe tick is the wrong terminology here to use. I just want to lock the scale of x and y. So that if 0 to 1 on the x axis is 10 pixels, 0-1 on the y axis is also 10 pixels. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
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. |
Beta Was this translation helpful? Give feedback.
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.