1 <?xml version="1.0" encoding="UTF-8"?>
3 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4 * Copyright (C) INRIA - Serge Steer
5 * Copyright (C) INRIA - 2008 - Jean-Baptiste Silvy
7 * This file must be used under the terms of the CeCILL.
8 * This source file is licensed as described in the file COPYING, which
9 * you should have received as part of this distribution. The terms
10 * are also available at
11 * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
14 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="zoom_rect">
16 <refname>zoom_rect</refname>
17 <refpurpose>zoom a selection of the current graphic figure</refpurpose>
20 <title>Calling Sequence</title>
28 <title>Arguments</title>
34 Vector of size 4 <literal>[xmin,ymin,xmax,ymax]</literal> give the
35 rectangle to be zoomed.
42 <para>Graphic handle of type Figure or Axes. Specify on which Axes
50 <title>Description</title>
52 <literal>zoom_rect</literal> function is used to perform a zoom inside a set of Axes Objects.
55 The <literal>h</literal> input argument specifies on which Axes the zoom will apply.
56 If <literal>h</literal> is a Figure handle then the zoom will apply on its Axes children.
57 If <literal>h</literal> is a Axes handle then the zoom will only apply to this handle.
58 If <literal>h</literal> is not specified, then the zoom is performed on the current Figure.
61 If <literal>rect</literal> input argument is specified then the zoomed Axes <literal>zoom_box</literal>
62 property is modified by the argument (see <link linkend="axes_properties">axes_properties</link>).
63 Its bounds along X and Y axis are replaced by <literal>rect</literal>.
64 If <literal>rect</literal> is not specified zoom_rect is an interactive zoom. User is required to select
65 a rectangle using the mouse. The new <literal>zoom_box</literal> property of zoomed axes are then computed
66 by finding the intersections of the rectangle with their axes boxe.
70 <title>Examples</title>
71 <programlisting role="example"><![CDATA[
75 zoom_rect([16,-1,18,1])
77 zoom_rect([16,0,16.2,1])
78 //back to the original
80 // zooming using axes_properties
82 a.zoom_box=[16,0,16.2,1];
85 //zooming subplots accordingly
92 rect=[3 -2 7 10]; //a rectangle specified in the current axes (last one) coordinates
95 //set the global underlying axes as current
96 f=gcf();set('current_axes',f.children($))
97 rect=[0.4 0 0.6 1] //a rectangle specified in ratio of the window size
99 rect=[0.4 0.2 0.6 0.8]; //a rectangle specified in ratio of the window size
102 // interactive zoom on current figure
108 <refsection role="see also">
109 <title>See Also</title>
110 <simplelist type="inline">
112 <link linkend="unzoom">unzoom</link>
115 <link linkend="axes_properties">axes_properties</link>