Difference between revisions of "ZoomIn Command"

From GeoGebra Manual
Jump to: navigation, search
m (Text replace - "<div class="box info"> 48px|left This page is part of the official manual for print and pdf. For structural reasons normal users can't edit this page. If you found any errors on this page please contact )
(;ZoomIn( ) :Restores the link=|16px Graphics View to the default initial position)
 
(11 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<noinclude>{{Manual Page|version=4.2}}</noinclude>
+
<noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|scripting}}
{{command|scripting}}
+
;ZoomIn( )
;ZoomIn[ <Scale Factor> ]
+
:Restores the [[File:Menu view graphics.svg|link=|16px]] [[Graphics View]] to the default initial position
: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|1=<code>ZoomIn[1]</code> doesn't do anything, <code>ZoomIn[2]</code> zooms the view in, <code>ZoomIn[0.5]</code>is equivalent to <code>[[ZoomOut Command|ZoomOut]][2]</code>, i.e. it zooms the view out.}}
+
;ZoomIn( <Scale Factor> )
;ZoomIn[ <Scale Factor>, &lt;Center Point> ]
+
:Zooms the [[File:Menu view graphics.svg|link=|16px]] [[Graphics View]] in by given factor with respect to current zoom, center of the screen is used as center point for the zoom.
:Zooms the [[Graphics View]] in by given factor with respect to current zoom, second parameter specifies center point for the zoom.
+
:{{example|1=<div><code>ZoomIn(1)</code> doesn't change the view, but does remove traces</div> <div><code>ZoomIn(2)</code> zooms the view in</div> <div><code>ZoomIn(0.5)</code> is equivalent to <code>ZoomOut(2)</code>, i.e. it zooms the view out.</div>}}
;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). If any of these parameters are dependent or has label set, the bounds of the view become dynamic (e.g. if ''a'' is a slider, <code>ZoomIn[-a,-a,a,a]</code> makes the zoom of the view dependent on slider ''a''). To avoid this behaviour, use [[CopyFreeObject Command]].
+
;ZoomIn( <Scale Factor>, &lt;Center Point> )
{{Note|If multiple [[Graphics View|Graphics Views]] are present, the active one is used.}}
+
:Zooms the [[File:Menu view graphics.svg|link=|16px]] [[Graphics View]] in by given factor with respect to current zoom, second parameter specifies center point for the zoom.
 +
:{{example|1=<div><code>ZoomIn(2, (0, 0))</code></div>}}
 +
 
 +
;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|1=<div><code><nowiki>ZoomIn(0, 1, 5, 6)</nowiki></code> </div>}}
 +
:{{Note|If any of these parameters are dependent or has label set, the bounds of the view become dynamic. To avoid this behavior, use [[CopyFreeObject Command]].}}
 +
:{{example|1=<div>If ''a'' is a slider, <code><nowiki>ZoomIn(-a, -a, a, a)</nowiki></code> makes the zoom of the view dependent on slider ''a''.</div>}}
 +
 
 +
;ZoomIn( <Min x>, <Min y>, <Min z>, <Max x>, <Max y>, <Max z> )
 +
:Zooms the 3D graphics view to the cuboid given by vertices (Min x, Min y, Min z), (Max x, Max y, Max z).  
 +
:{{example|1=<div><code><nowiki>ZoomIn(-5, -5, -5, 5, 5, 5)</nowiki></code> </div>}}
 +
:{{Note|The dynamic behavior of the 2D version isn't supported}}
 +
{{Notes|1=
 +
:*If multiple [[File:Menu view graphics.svg|link=|16px]] [[Graphics View|Graphics Views]] are present, the active one is used
 +
:*See also [[ZoomOut Command|ZoomOut]], [[SetActiveView Command|SetActiveView]], [[Pan Command|Pan]]  commands.}}

Latest revision as of 14:16, 23 October 2019


ZoomIn( )
Restores the Menu view graphics.svg Graphics View to the default initial position
ZoomIn( <Scale Factor> )
Zooms the Menu view graphics.svg 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 change the view, but does remove traces
ZoomIn(2) zooms the view in
ZoomIn(0.5) is equivalent to ZoomOut(2), i.e. it zooms the view out.


ZoomIn( <Scale Factor>, <Center Point> )
Zooms the Menu view graphics.svg 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 behavior, use CopyFreeObject Command.
Example:
If a is a slider, ZoomIn(-a, -a, a, a) makes the zoom of the view dependent on slider a.


ZoomIn( <Min x>, <Min y>, <Min z>, <Max x>, <Max y>, <Max z> )
Zooms the 3D graphics view to the cuboid given by vertices (Min x, Min y, Min z), (Max x, Max y, Max z).
Example:
ZoomIn(-5, -5, -5, 5, 5, 5)
Note: The dynamic behavior of the 2D version isn't supported
Notes:

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.

© 2024 International GeoGebra Institute