Customizing with xmin, ymin, ymax x:y=1

kberhib shared this idea 1 month ago
Completed

Hi!

I would like a graphics view to have a fixed ratio x:y = 1 and then set 3 of the 4 values,

xmin, xmax, ymin, ymax to a certain number.

But when trying that, geogebra "obeys" for ymin and ymax but not for the last.

It is clear that given ymin and ymax and the size of the graphics view, the span of x-values is fixed, but it should nevertheless be able to show xmin as it minimum value.

Click the link below and try to drag xmin to around 34 and it isn't even contained in the view.

https://www.geogebra.org/m/evnj6faw

Perhaps there are good reasons for having it as it is, but if not it is my suggestion to make possible choose 3 out of 4.

Best regards

Ketil Bergesen

Comments (6)

photo
1

Use corner(5)

(xmax-xmin)/(ymax-ymin)=(x(corner(5)+2)/(y(corner(5)+2)

set three of them and calculate the fourth

photo
1

Thank you so much, that is a good way to calculate the last corner, but my suggestion is that geogebra relates to the 3 values given. Then the last corner is also given (that is if x:y=1)

By the way, why the 2 extra pixels in the equation? Not that it has a big significance unless for example

xmax- xmin is tiny...

photo
1

press crtl+M then compare the values of (xmax-xmin)/(ymax-ymin) with (x(corner(5)+2)/(y(corner(5)+2) and with (x(corner(5))/(y(corner(5)) using 10 significant digits

put xmax=xmin+(ymax-ymin) (x(corner(5)+2)/(y(corner(5)+2) for avoid the flick effect while GG recalculates the xmax value

photo
1

Thank you!

I am impressed by the knowledge some of you guys possess.

Still I wonder though, if the geogebra team will look into the suggestion.

If you ask for a xmin, xmax and ymin, that is what you expect to get (again given x:y locked to 1)

photo
1

I am impressed by the knowledge some of you guys possess.
14*365 días leyendo y contestando en este y el anterior foro deben servir para algo

photo
1

Sí, tienes razón. Gracias!

Ketil B

photo
© 2021 International GeoGebra Institute