SetAxesRatio 1-1 and Set dimensions

https://www.reddit.com/r/geogebra/comments/1fgxz04/creating_graphs_for_print_setting_dimensions_and/
Scripting
[code]lim = Slider(1, 10, 0.01, 1, 200)[br]SetValue(lim, 10)[br]ZoomIn(-lim, -lim, lim, lim)[br]SetAxesRatio(1, 1)[br][br]O = (0, 0) [br]SetVisibleInView(O, 1, false)[br]CenterView(O)[br][br]f(x) = sin(x)[br][br]# SeAxesRatio() does not work here because [br]# we are using ZoomIn() to set set the view,[br]# so you can remove it.[br][br][br][/code]

Information: SetAxesRatio 1-1 and Set dimensions