Difference between revisions of "SetAxesRatio Command"
From GeoGebra Manual
(Autogenerated from properties) |
|||
(11 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
− | <noinclude>{{Manual Page|version= | + | <noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|scripting}} |
− | {{command|scripting}} | + | ;SetAxesRatio( <Number>, <Number> ) |
− | ;SetAxesRatio | + | :Changes the axes ratio of active [[File:Menu view graphics.svg|link=|16px]] [[Graphics View]] so that X units on [[Lines and Axes#Axes|''x''-axis]] correspond to the same number of pixels as Y units on ''y''-axis and point (0,0) stays on its coordinates. If a unitary ratio is used, the related axis is fixed with the unit value, and the other one is adjusted as indicated. |
− | :{{ | + | :{{Examples| 1=<div> |
− | ;SetAxesRatio | + | :*<code><nowiki>SetAxesRatio(1,2)</nowiki></code> fixes the ''x''-axis and compresses the ''y''-axis |
− | : | + | :*<code><nowiki>SetAxesRatio(2,1)</nowiki></code> fixes the ''y''-axis and shrinks the ''x''-axis.</div> }} |
+ | ;SetAxesRatio( <Number>, <Number>, <Number> ) | ||
+ | :Similar to above syntax, works with [[File:Perspectives algebra 3Dgraphics.svg|link=|16px]] [[3D Graphics View]]. |
Latest revision as of 09:04, 4 August 2020
- SetAxesRatio( <Number>, <Number> )
- Changes the axes ratio of active Graphics View so that X units on x-axis correspond to the same number of pixels as Y units on y-axis and point (0,0) stays on its coordinates. If a unitary ratio is used, the related axis is fixed with the unit value, and the other one is adjusted as indicated.
- Examples:
SetAxesRatio(1,2)
fixes the x-axis and compresses the y-axisSetAxesRatio(2,1)
fixes the y-axis and shrinks the x-axis.
- SetAxesRatio( <Number>, <Number>, <Number> )
- Similar to above syntax, works with 3D Graphics View.