Difference between revisions of "ZoomIn Command"
From GeoGebra Manual
m |
m |
||
Line 1: | Line 1: | ||
− | <noinclude>{{Manual Page|version= | + | <noinclude>{{Manual Page|version=5.0}}</noinclude> |
{{command|scripting}} | {{command|scripting}} | ||
;ZoomIn[ <Scale Factor> ] | ;ZoomIn[ <Scale Factor> ] |
Revision as of 08:54, 28 July 2015
- ZoomIn[ <Scale Factor> ]
- Zooms the Graphics View in by given factor with respect to current zoom, center of the screen is used as center point for the zoom.
- Example:
ZoomIn[1]
doesn't do anythingZoomIn[2]
zooms the view inZoomIn[0.5]
is equivalent toZoomOut[2]
, i.e. it zooms the view out.
- ZoomIn[ <Scale Factor>, <Center Point> ]
- Zooms the Graphics View in by given factor with respect to current zoom, second parameter specifies center point for the zoom.
- Example:
ZoomIn[2, (0, 0)]
- ZoomIn[ <Min x>, <Min y>, <Max x>, <Max y> ]
- Zooms the graphics view to the rectangle given by vertices (Min x, Min y), (Max x, Max y).
- Example:
ZoomIn[0, 1, 5, 6]
- Note: If any of these parameters are dependent or has label set, the bounds of the view become dynamic. To avoid this behaviour, use CopyFreeObject Command.
- Example:If a is a slider,
ZoomIn[-a, -a, a, a]
makes the zoom of the view dependent on slider a.
Notes:
- If multiple Graphics Views are present, the active one is used
- See also ZoomOut, SetActiveView, Pan commands.
Comments
Idea of Use[edit]
Linear aproximation of a function by its tangent[edit]
Create a function f with a point A on it and a button with the code ZoomIn(2,A)
to see that the function looks equal to the tangent for a big "magnification". Another button with ZoomOut let you be able to prove this at other positions of the point A.