SetAxesRatio 1-1 and Set dimensions
Scripting
lim = Slider(1, 10, 0.01, 1, 200)
SetValue(lim, 10)
ZoomIn(-lim, -lim, lim, lim)
SetAxesRatio(1, 1)
O = (0, 0)
SetVisibleInView(O, 1, false)
CenterView(O)
f(x) = sin(x)
# SeAxesRatio() does not work here because
# we are using ZoomIn() to set set the view,
# so you can remove it.