1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177
|
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
* Copyright (C) ENPC - Jean-Philippe Chancelier
*
* This file must be used under the terms of the CeCILL.
* This source file is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
* are also available at
* http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
*
-->
<refentry version="5.0-subset Scilab" xml:id="xsetech" xml:lang="en"
xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns:ns3="http://www.w3.org/1999/xhtml"
xmlns:mml="http://www.w3.org/1998/Math/MathML"
xmlns:db="http://docbook.org/ns/docbook">
<info>
<pubdate>$LastChangedDate$</pubdate>
</info>
<refnamediv>
<refname>xsetech</refname>
<refpurpose>ajusta a sub-janela de uma janela de grficos para
esboo</refpurpose>
</refnamediv>
<refsynopsisdiv>
<title>Seqncia de Chamamento</title>
<synopsis>xsetech(wrect,[frect,logflag])
xsetech(wrect=[...],frect=[..],logflag="..", arect=[...])
xsetech()</synopsis>
</refsynopsisdiv>
<refsection>
<title>Parmetros</title>
<variablelist>
<varlistentry>
<term>wrect</term>
<listitem>
<para>vetor de tamanho 4 definindo a sub-janela a ser utilizada.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>frect</term>
<listitem>
<para>vetor de tamanho 4. </para>
</listitem>
</varlistentry>
<varlistentry>
<term>logflag</term>
<listitem>
<para>string de tamanho 2 "xy", onde x e y podem ser "n" ou "l". "n"
escala normal e "l" significa escala logartmica. x refere-se ao
eixo x e y ao eixo y. </para>
</listitem>
</varlistentry>
<varlistentry>
<term>arect</term>
<listitem>
<para>vetor de tamanho 4.</para>
</listitem>
</varlistentry>
</variablelist>
</refsection>
<refsection>
<title>Descrio </title>
<para><literal>xsetech</literal> principalmente utilizado para ajustar a
sub-janela da janela de grficos que ser utilizada para esboo. A
sub-janela especificada atravs do parmetro
<literal>wrect=[x,y,w,h]</literal> (ponto superior esquerdo, largura,
altura). Os valores em <literal>wrect</literal> a so especificados
utilizando-se a proporo de largura ou altura da janela de grficos
corrente. Por exemplo, <literal>wrect=[0,0,1,1]</literal> significa que
toda a janela ser utilizada e <literal>wrect=[0.5,0,0.5,1]</literal>
significa que a regio grfica ser a metade direita da janela de
grficos.</para>
<para><literal>xsetech</literal> tambm ajusta as escalas grficas
correntes para esboo 2d e pode ser utilizada juntamente a rotinas
grficas que requerem a escala de grficos corrente (por exemplo
<literal>strf="x0z"</literal> ou <literal>frameflag=0</literal> em
<literal>plot2d</literal>).</para>
<para><literal>frect=[xmin,ymin,xmax,ymax]</literal> utilizado para
ajustar a escala grfica e igual ao argumento <literal>rect</literal> de
<literal>plot2d</literal>. Se <literal>frect</literal> no for fornecido,
o valor corrente da escala de grficos permanece inalterado. O valor
padro de <literal>rect</literal> <literal>[0,0,1,1]</literal> (na
criao de janelas, quando se volta para o valor padro com
<literal>xset('default')</literal> ou quando se limpa eventos grficos
gravados <literal>xbasc()</literal>).</para>
<para><literal>arect=[x_left, x_right,y_up,y_down]</literal> utilizado
para ajustar a moldura grfica dentro da sub-janela. A moldura grfica
especificada (como <literal>wrect</literal>) utilizando-se a proporo de
largura ou altura da sub-janela de grficos corrente. O valor padro
<literal>1/8*[1,1,1,1]</literal>. Se <literal>arect</literal> no for
fornecido, o valor padro permanece inalterado.</para>
</refsection>
<refsection>
<title>Exemplos</title>
<programlisting role="example"><![CDATA[
// para obter uma explanao grfica dos parmetros de xsetech entre com:
exec('SCI/modules/graphics/demos/xsetechfig.sce');
// aqui xsetech usado para dividir a janela de grficos em duas partes
// o primeiro xsetech usado para se ajustar a primeira sub-janela
// e a escala de grficos corrente
xsetech([0,0,1.0,0.5],[-5,-3,5,3])
// chamamos plot2d com a opo "001" para utilizar a escala de grficos
// ajustada por xsetech
plot2d([1:10]',[1:10]',1,"001"," ")
// ento xsetech usado para ajustar a segunda sub-janela
xsetech([0,0.5,1.0,0.5])
// a escala de grficos ajustada por xsetech para [0,0,1,1] por padro
// e ns a modificamos utilizando o argumento rect em plot2d
plot2d([1:10]',[1:10]',1,"011"," ",[-6,-6,6,6])
// quatro esboos em uma nica janela de grficos
xbasc()
xset("font",2,0)
xsetech([0,0,0.5,0.5]); plot3d()
xsetech([0.5,0,0.5,0.5]); plot2d()
xsetech([0.5,0.5,0.5,0.5]); grayplot()
xsetech([0,0.5,0.5,0.5]); histplot()
// de volta aos valores padres para a sub-janela
xsetech([0,0,1,1])
// um esboo com arect modificado
xbasc()
xset("default")
xsetech(arect=[0,0,0,0])
x=1:0.1:10;plot2d(x',sin(x)')
xbasc()
xsetech(arect=[1/8,1/8,1/16,1/4])
x=1:0.1:10;plot2d(x',sin(x)')
xbasc()
xset("default")
]]></programlisting>
</refsection>
<refsection>
<title>Ver Tambm </title>
<simplelist type="inline">
<member><link linkend="xgetech">xgetech</link></member>
<member><link linkend="subplot">subplot</link></member>
<member><link linkend="isoview">isoview</link></member>
<member><link linkend="square">square</link></member>
</simplelist>
</refsection>
<refsection>
<title>Autor</title>
<para>J.Ph.C.</para>
</refsection>
</refentry>
|