xset: help page only 'fpf' + equivalences 97/19097/4
Samuel GOUGEON [Mon, 13 Feb 2017 05:17:27 +0000 (06:17 +0100)]
Change-Id: Ic41802d1a8deac8051045701164b90a466feb978

scilab/modules/graphics/help/en_US/xset.xml
scilab/modules/graphics/help/fr_FR/xset.xml
scilab/modules/graphics/help/ja_JP/xset.xml
scilab/modules/graphics/help/pt_BR/xset.xml
scilab/modules/graphics/tests/unit_tests/xset_xget.dia.ref [deleted file]
scilab/modules/graphics/tests/unit_tests/xset_xget.tst

index 2220f0b..55b1a14 100644 (file)
@@ -2,6 +2,7 @@
 <!--
  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
  * Copyright (C) ENPC - Jean-Philippe Chancelier
+ * Copyright (C) 2017 - Samuel GOUGEON
  *
  * Copyright (C) 2012 - 2016 - Scilab Enterprises
  *
  * along with this program.
  *
  -->
-<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="xset">
+<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="xset">
     <refnamediv>
         <refname>xset</refname>
         <refpurpose>
@@ -24,7 +28,6 @@
         <title>Syntax</title>
         <synopsis>
             xset(choice_name, x1, x2, x3, x4, x5)
-            xset()
         </synopsis>
     </refsynopsisdiv>
     <refsection>
     </refsection>
     <refsection>
         <title>Description</title>
-        <para>
             <warning>
-                This function is obsolete.
+                This function is obsolete. Use the Scilab graphic objects representation instead:
+                See equivalences here-below.
             </warning>
-            Use the Scilab graphic objects representation instead (see the
-            <link linkend="set">set</link> and <link linkend="get">get</link>
-            functions as well as the <link linkend="graphics_entities">graphics
-                entities
-            </link>
-            help page).
-        </para>
-        <para>
-            <function>xset</function> is used to set default values of the
-            current window graphic context.
-        </para>
-        <para>
-            When called no argument, a choice menu is created showing the
-            current values and changes can be performed through toggle buttons.
-        </para>
-        <para>
-            Use <code>xset()</code> to display or set the current color, mark
-            and fonts used.
-        </para>
-        <para/>
         <variablelist>
             <varlistentry>
-                <term>xset("auto clear","on"|"off")</term>
-                <listitem>
-                    <para>
-                        Switch <literal>"on"</literal> or <literal>"off"</literal>
-                        the auto clear mode for graphics. When the auto clear
-                        mode is <literal>"on"</literal>, successive plots are
-                        not superposed, i.e. a <code>clf()</code> operation (the
-                        graphics window is cleared and the associated recorded
-                        graphics is erased) is performed before each high
-                        level graphics function. Default value is <literal>"off"</literal>.
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>xset("background",color)</term>
-                <listitem>
-                    <para>
-                        Set the background color of the current <literal>Axes</literal>
-                        object. The <literal>color</literal> argument is the
-                        colormap index of the color to use.
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>xset("clipping", x, y, w, h)</term>
-                <listitem>
-                    <para>
-                        Set the clipping zone (the zone of the graphics window
-                        where plots can be drawn) to the rectangle
-                        <literal>(x,y,w,h)</literal> (Upper-Left point, Width,
-                        Height). This function uses the current coordinates of
-                        the plot.
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>xset("color",value)</term>
-                <listitem>
-                    <para>
-                        Set the default color for filling, line or text drawing
-                        functions. <literal>value</literal> is an integer
-                        projected in the interval <literal>[0,whiteid]</literal>.
-                        0 is used for black filling and <literal>whiteid</literal> for white. The
-                        value of <literal>whiteid</literal> can be obtained with <code>xget("white")</code>.
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>xset("colormap",cmap)</term>
-                <listitem>
-                    <para>
-                        Set the colormap as a <literal>m x 3</literal> matrix,
-                        where <literal>m</literal> is the number of colors.
-                        Color number <literal>i</literal> is given as a 3-uple
-                        <literal>cmap(i,1)</literal>, <literal>cmap(i,2)</literal>,
-                        <literal>cmap(i,3)</literal>  corresponding respectively
-                        to red, green and blue intensity between 0 and 1.
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>xset("dashes",i)</term>
-                <listitem>
-                    <para>
-                        In black and white mode (<code>xset("use color",0)</code>),
-                        set the dash style to style <literal>i</literal> (0 for
-                        solid line). In color mode (<code>xset("use color",1)</code>)
-                        this is used to set line, mark and text color.
-                        <warning>
-                            This keyword is obsolete, please use
-                            <literal>xset('color',i)</literal> or
-                            <literal>xset('line style',i)</literal> instead.
-                        </warning>
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>xset("default")</term>
-                <listitem>
-                    <para>
-                        Reset the graphics context to default values.
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>xset("font", fontid, fontsize):</term>
-                <listitem>
-                    <para>
-                        Set the current font and its current size. Note that
-                        <literal>fontsize</literal> applies to all fonts not
-                        only <literal>fontid</literal>.
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>xset("font size", fontsize)</term>
-                <listitem>
-                    <para>Set the fonts size.</para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>xset("foreground",color)</term>
-                <listitem>
-                    <para>
-                        Set the foreground color of the current <literal>Axes</literal>
-                        object. The <literal>color</literal> argument is the
-                        colormap index of the color to use.
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
                 <term>xset("fpf", string)</term>
                 <listitem>
                     <para>
                     </para>
                 </listitem>
             </varlistentry>
-            <varlistentry>
-                <term>xset("hidden3d", colorid): </term>
-                <listitem>
-                    <para>
-                        Set the color number for backward facing faces in
-                        <function>plot3d</function>. <literal>colorid=0</literal>
-                        zero suppress the drawing of backward facing faces of 3d
-                        objects. This is technically called 'culling' and speeds
-                        up the rendering of closed surfaces.
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>xset("line mode", type)</term>
-                <listitem>
-                    <para>
-                        This function is used to set the line drawing mode.
-                        Absolute mode is set with <literal>type=1</literal> and
-                        relative mode with type=0.
-                        <warning>The mode type=0 has bugs.</warning>
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>xset("line style", value)</term>
-                <listitem>
-                    <para>
-                        Set the current line style (1 for solid, &gt;1 for
-                        dashed lines).
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>xset("mark", markid, marksize)</term>
-                <listitem>
-                    <para>
-                        Set the current mark and the current mark size. Use
-                        <code>xset()</code> to see the marks. Note that
-                        <literal>marksize</literal> applies to all marks not
-                        only <literal>markid</literal>.
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>xset("mark size", marksize)</term>
-                <listitem>
-                    <para>Set the mark size.</para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>xset("pattern", value)</term>
-                <listitem>
-                    <para>
-                        Set the current pattern for filling functions. value is
-                        an integer projected in the interval
-                        <literal>[0,whiteid]</literal>. 0 is used for black
-                        filling and <literal>whiteid</literal> for white. The
-                        value of <literal>whiteid</literal> can be obtained
-                        with <code>xget("white")</code>.
-                        <literal>"pattern"</literal> is equivalent to
-                        <literal>"color"</literal>.
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>xset("thickness", value)</term>
-                <listitem>
-                    <para>
-                        Set the thickness of lines in pixel (0 and 1 have the
-                        same meaning: 1 pixel thick).
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>xset("use color", flag)</term>
-                <listitem>
-                    <para>
-                        If <literal>flag=1</literal> then <code>xset("pattern", 1)</code> or
-                        <code>xset("dashes", 1)</code> will be used so as to
-                        change the default color for drawing or for filling
-                        patterns. If <literal>flag=0</literal> then we switch
-                        back to the gray and dashes mode.
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>xset("viewport", x, y)</term>
-                <listitem>
-                    <para>Set the position of the panner.</para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>xset("wdim", width, height)</term>
-                <listitem>
-                    <para>
-                        Set the width and the height of the current graphics
-                        window. This option is not used by the postscript
-                        driver.
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>xset("wpdim", width, height)</term>
-                <listitem>
-                    <para>
-                        Sets the width and the height of the current physical
-                        graphic window (which can be different from the actual
-                        size in mode <literal>wresize</literal> 1). This option
-                        is not used by the postscript driver.
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>xset("window", window_number)</term>
-                <listitem>
-                    <para>
-                        Set the current window to the window <literal>window_number</literal>
-                        and creates the window if it does not exist.
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>xset("wpos", [x, y])</term>
-                <listitem>
-                    <para>
-                        Set the position of the upper left point of the graphics
-                        window.
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>xset("wresize",flag)</term>
-                <listitem>
-                    <para>
-                        If <literal>flag=1</literal> then the graphic is
-                        automatically resized to fill the graphics window.
-                    </para>
-                    <programlisting role=""><![CDATA[
-xdel();
-xset("wresize",1);
-plot2d();
-xset("wdim",1000,500)
- ]]></programlisting>
-                    <para>
-                        If flag=0 the scale of the graphic is left unchanged
-                        when the graphics window is resized. Top left panner or
-                        keyboard arrows may be used to scroll over the graphic.
-                    </para>
-                    <programlisting role=""><![CDATA[
-xdel();
-plot2d();
-xset("wresize",0);
-xset("wdim",1000,500)
- ]]></programlisting>
-                </listitem>
-            </varlistentry>
         </variablelist>
+        <refsect2>
+            <title>Replacements</title>
+            <para>
+            <literal>xset(..)</literal> returned nothing. Please take care appending a semi-colon
+            after replacement instructions in order to cancel the display of their output.
+            </para>
+        <screen><![CDATA[
+// SCILAB 3 & 4                 SCILAB N>4
+// ------------                 ----------
+xset("default")                 clf("reset")
+
+xset("wpos", [x y])             gcf().figure_position = [x y];
+xset("wpdim", w, h)             gcf().figure_size = [w h];
+xset("wdim", w, h)              gcf().figure_size = [w h];
+xset("wresize", 0|1)  HS        gcf().auto_resize = "off"|"on";
+xset("colormap", CM)            gcf().color_map = CM;
+xset("figure", i)               scf(i);
+xset("window", i)               scf(i);
+xset("viewport", xp,yp)         gcf().viewport = [xp yp];
+
+xset("auto clear","on"|"off")   gca().auto_clear = "on"|"off";
+xset("line mode", 0|1)          gca().line_mode = "off"|"on";
+xset("line style", n)           gca().line_style = n;
+xset("dashes", n)               gca().line_style = n;
+xset("thickness", n)            gca().thickness = n;
+xset("font size", s)            gca().font_size = s;
+xset("font", id, fsize)         set(gca(), "font_style", id, "font_size", fsize);
+xset("mark size", msize)        set(gca(), "mark_size_unit", "tabulated", "mark_size", msize);
+xset("mark", id, msize)         set(gca(), "mark_style", id, "mark_size_unit", "tabulated", "mark_size", msize);
+xset("color", icol)             gca().foreground = icol;
+xset("color", 0)                gca().foreground = -1;
+xset("pattern", icol)           gca().foreground = icol;
+xset("pattern", 0)              gca().foreground = -1;
+xset("foreground", icol)        gca().foreground = icol;
+xset("background", icol)        gca().background = icol;
+xset("hidden3d", icol)          gca().hiddencolor = icol;
+
+xset("clipping", rect)          set(gca(), "clip_box", rect, "clip_state", "on");
+xset("clipgrf")                 gca().clip_state = "clipgrf";
+xset("clipoff")                 gca().clip_state = "off";
+
+xset("alufunction",i)           gcf().pixel_drawing_mode = str(i);
+                                #i   str(i)
+                                --   ------
+                                0 => "clear"
+                                1 => "and"
+                                2 => "andReverse"
+                                3 => "copy"
+                                4 => "andInverted"
+                                5 => "noop"
+                                6 => "xor"
+                                7 => "or"
+                                8 => "nor"
+                                9 => "equiv"
+                                10 => "invert"
+                                11 => "orReverse"
+                                12 => "copyInverted"
+                                13 => "orInverted"
+                                14 => "nand"
+                                15 => "set"
+]]></screen>
+        </refsect2>
     </refsection>
     <refsection role="see also">
         <title>See also</title>
@@ -361,16 +139,28 @@ xset("wdim",1000,500)
                 <link linkend="xget">xget</link>
             </member>
             <member>
-                <link linkend="getcolor">getcolor</link>
+                <link linkend="set">set</link>
             </member>
             <member>
-                <link linkend="ged">ged</link>
+                <link linkend="graphics_entities">graphics entities</link>
             </member>
             <member>
-                <link linkend="set">set</link>
+                <link linkend="gcf">gcf</link>
             </member>
             <member>
-                <link linkend="graphics_entities">graphics entities</link>
+                <link linkend="gdf">gdf</link>
+            </member>
+            <member>
+                <link linkend="gca">gca</link>
+            </member>
+            <member>
+                <link linkend="gda">gda</link>
+            </member>
+            <member>
+                <link linkend="ged">ged</link>
+            </member>
+            <member>
+                <link linkend="getcolor">getcolor</link>
             </member>
         </simplelist>
     </refsection>
@@ -378,9 +168,23 @@ xset("wdim",1000,500)
         <title>History</title>
         <revhistory>
             <revision>
+                <revnumber>5.0.1</revnumber>
+                <revremark>
+                    The <literal>.alufunction</literal> property is obsolete. It is no longer
+                    taken into account for graphical renderings. It is replaced with
+                    <literal>gcf().pixel_drawing_mode</literal>.
+                </revremark>
+            </revision>
+            <revision>
                 <revnumber>5.4.0</revnumber>
                 <revremark>
-                    The "alufunction" property is no more supported, this property was no more used for rendering since Scilab 5.0.1.
+                    The <literal>"alufunction"</literal> is no longer supported..
+                </revremark>
+            </revision>
+            <revision>
+                <revnumber>6.0.0</revnumber>
+                <revremark>
+                    The only <literal>xset("fpf", format)</literal> syntax is now supported.
                 </revremark>
             </revision>
         </revhistory>
index 1d89cae..9ac386f 100644 (file)
@@ -1,15 +1,33 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<refentry 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" xmlns:scilab="http://www.scilab.org" xml:id="xset" xml:lang="fr">
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) ENPC - Jean-Philippe Chancelier
+ * Copyright (C) 2017 - Samuel GOUGEON
+ *
+ * Copyright (C) 2012 - 2016 - Scilab Enterprises
+ *
+ * This file is hereby licensed under the terms of the GNU GPL v2.0,
+ * pursuant to article 5.3.4 of the CeCILL v.2.1.
+ * This file was originally licensed under the terms of the CeCILL v2.1,
+ * and continues to be available under such terms.
+ * For more information, see the COPYING file which you should have received
+ * along with this program.
+ *
+ -->
+<refentry 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"
+    xmlns:scilab="http://www.scilab.org" xml:id="xset" xml:lang="fr">
     <refnamediv>
         <refname>xset</refname>
         <refpurpose>
-            change des valeurs du contexte graphique. <emphasis role="bold">Fonction obsolete</emphasis>
+            change des valeurs du contexte graphique. <emphasis role="bold">Fonction obsolète</emphasis>
         </refpurpose>
     </refnamediv>
     <refsynopsisdiv>
         <title>Séquence d'appel</title>
-        <synopsis>xset(choice-name,x1,x2,x3,x4,x5)
-            xset()
+        <synopsis>
+            xset(choice-name, x1, x2, x3, x4, x5)
         </synopsis>
     </refsynopsisdiv>
     <refsection>
             <varlistentry>
                 <term>choice-name</term>
                 <listitem>
-                    <para>chaîne de caractères</para>
+                    chaîne de caractères
                 </listitem>
             </varlistentry>
             <varlistentry>
                 <term>x1,...,x5</term>
                 <listitem>
-                    <para>
                         dépend de <literal>choice-name</literal>
-                    </para>
                 </listitem>
             </varlistentry>
         </variablelist>
     </refsection>
     <refsection>
         <title>Description</title>
-        <para>
-            <emphasis role="bold">
-                <literal>Remarque Importante : </literal>Cette
-                fonction est obsolète
-            </emphasis>
-            .Utilisez de préférence la représentation
-            objet des graphiques Scilab.voir les fonctions <link linkend="set">set</link> et <link linkend="get">get</link> ainsi que la
-            page d'aide <link linkend="graphics_entities">graphics_entities</link>.
-        </para>
+        <warning>
+            <emphasis role="bold">Cette fonction est obsolète</emphasis>. Utilisez
+            désormais la représentation objet des graphiques Scilab. Voir les syntaxes équivalentes
+                       listées ci-dessous.
+        </warning>
         <para>
             <literal>xset</literal> est utilisée pour changer des valeurs du
             contexte graphique de la fenêtre graphique courante.
         </para>
-        <para>Quand elle est appelée sans argument, une boîte de dialogue est
-            affichée avec les valeurs courantes et des changements peuvent être
-            effectués à   l'aide de boutons.
-        </para>
-        <para>
-            Utiliser <literal>xset()</literal> pour afficher ou changer la
-            couleur courante, le marqueur ou la police.
-        </para>
         <variablelist>
             <varlistentry>
-                <term>xset("alufunction",number)</term>
-                <listitem>
-                    <para>utilisé pour changer l'opérateur logique de dessin L'opérateur
-                        est choisi avec <literal>x1</literal>. Les valeurs habituelles sont
-                        : 3 pour la copie (par défaut), 6 pour le ou exclusif (pour faire
-                        des animations) et 0 pour effacer. Voir
-                        <literal>alufunctions</literal> pour plus de détails.
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>xset("auto clear","on"|"off")</term>
-                <listitem>
-                    <para>Met "on" ou "off" le mode d'effacement automatique des
-                        graphiques. Quand le mode est "on", les dessins successifs ne sont
-                        pas superposés, i.e. la commande <literal>clf()</literal>
-                        (effacement de la fenêtre graphique et effacement des graphiques
-                        enregistrés) est exécutée avant chaque commande graphique de haut
-                        niveau (plot2d par exemple). La valeur par défaut est "off".
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>xset("background",color)</term>
-                <listitem>
-                    <para>Change la couleur d'arrière plan du système d'axes courant.
-                        L'argument <literal>color</literal> correspond a un indice de la table de couleur.
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>xset("clipping",x,y,w,h)</term>
-                <listitem>
-                    <para>Définit la zone de clipping (la zone de la fenêtre graphique
-                        où les dessins peuvent être dessinés) comme le rectangle (x,y,w,h)
-                        (point en haut à   gauche, largeur, hauteur). Cette fonction utilise
-                        l'échelle courante de la fenêtre graphique.
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>xset("color",value)</term>
-                <listitem>
-                    <para>Définit la couleur par défaut de tracé de ligne, de
-                        remplissage, de texte, pour toutes les fonctions de dessin.
-                        <literal>value</literal> est un entier projeté sur l'intervalle
-                        [0,whiteid]. 0 est utilisé pour le noir et whiteid pour le blanc. La
-                        valeur de whiteid peut être obtenue avec
-                        <literal>xget("white")</literal>.
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>xset("colormap",cmap)</term>
-                <listitem>
-                    <para>Définit la table des couleurs à   partir d'une matrice m x 3.
-                        m est le nombre de couleurs. La couleur numéro i est donnée comme le
-                        triplet cmap(i,1), cmap(i,2), cmap(i,3) correspondant respectivement
-                        aux intensités de rouge, vert et bleu, comprises entre 0 et
-                        1.
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>xset("dashes",i)</term>
-                <listitem>
-                    <para>
-                        en mode noir et blanc (<literal>xset("use
-                            color",0)
-                        </literal>
-                        ), choisit le style de pointillé numéro i (0 pour
-                        une ligne continue). En mode couleur (<literal>xset("use
-                            color",1)
-                        </literal>
-                        )cette commande est utilisée pour choisir la
-                        couleur du marqueur, des lignes et du texte. Ce mot-clé est
-                        obsolète, utiliser <literal>xset('color',i)</literal> et
-                        <literal>xset('line style',i)</literal> à   la place.
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>xset("default")</term>
-                <listitem>
-                    <para>Réinitialise le contexte graphiques aux valeurs par
-                        défaut.
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>xset("font",fontid,fontsize)</term>
-                <listitem>
-                    <para>
-                        Choisit la police courante et sa taille.
-                        Noter que <literal>fontsize</literal> s'applique aussi à
-                        toutes les polices autres que <literal>fontid</literal> .
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>xset("font size",fontsize)</term>
-                <listitem>
-                    <para>Choisit la taille des polices.</para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>xset("foreground",color)</term>
-                <listitem>
-                    <para>Choisit la couleur de premier plan du système d'axes courant.
-                        L'argument <literal>color</literal> correspond a un indice de la table de couleur.
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
                 <term>xset("fpf",string)</term>
                 <listitem>
                     <para>Change le format des nombres affichés sur les courbes de
                     </para>
                 </listitem>
             </varlistentry>
-            <varlistentry>
-                <term>xset("hidden3d",colorid)</term>
-                <listitem>
-                    <para>
-                        Choisit la couleur des parties arrières dans la fonction plot3d.
-                        <literal>colorid=0</literal> supprime l'affichage des parties
-                        arrières des objets 3D. Il s'agit d'une technique dénommée 'culling'
-                        et permet d'accélérer le rendu des surfaces fermées.
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>xset("line mode",type)</term>
-                <listitem>
-                    <para>Cette fonction est utilisée pour changer le mode de dessin des
-                        lignes. Mode absolu pour type=1 et relatif avec type=0. (attention :
-                        le mode type=0 est buggé)
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>xset("line style",value)</term>
-                <listitem>
-                    <para>Choisit le style de ligne (1: continu, &gt;1 pour les
-                        pointillés).
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>xset("mark",markid,marksize)</term>
-                <listitem>
-                    <para>Choisit le marqueur ainsi que sa taille. Utiliser
-                        <literal>xset()</literal> pour voir les marqueurs. Noter que
-                        <literal>marksize</literal> s'applique aussi à   tous les marqueurs
-                        autres que <literal>markid</literal>.
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>xset("mark size",marksize)</term>
-                <listitem>
-                    <para>Choisit la taille de marqueur</para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>xset("pattern",value)</term>
-                <listitem>
-                    <para>Choisit le motif pour les fonctions de remplissage.
-                        <literal>value</literal> est un entier projeté sur l'intervalle
-                        [0,whiteid]. 0 est utilisé pour le noir et whiteid pour le blanc. La
-                        valeur de whiteid peut être obtenue avec
-                        <literal>xget("white")</literal>. "pattern" est équivalent à  
-                        "color".
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>xset("thickness",value)</term>
-                <listitem>
-                    <para>Choisit l'épaisseur des lignes en pixels (0 et 1 = épaisseur
-                        de 1 pixel).
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>xset("use color",flag)</term>
-                <listitem>
-                    <para>
-                        Si flag=1 alors <literal>xset("pattern",.)</literal> ou
-                        <literal>xset("dashes",.)</literal> changent la couleur de dessin ou
-                        de remplissage. Si flag=0 on passe en mode pointillés et noir et
-                        blanc.
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>xset("viewport",x,y)</term>
-                <listitem>
-                    <para>Choisit la position de la fenêtre glissante.</para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>xset("wdim",width,height)</term>
-                <listitem>
-                    <para>Choisit la largeur et la hauteur de la fenêtre graphique
-                        courante. Cette option n'est pas prise en compte par le pilote
-                        PostScript.
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>xset("wpdim",width,height)</term>
-                <listitem>
-                    <para>Choisit (en pixels) la largeur et la hauteur de la fenêtre
-                        graphique courante physique (qui peut être différente de la taille
-                        réelle en mode wresize=1). Cette option n'est pas prise en compte
-                        par le pilote PostScript.
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>xset("window",window-number)</term>
-                <listitem>
-                    <para>
-                        Choisit la fenêtre <literal>window-number</literal> comme
-                        fenêtre graphique par défaut et crée cette fenêtre si elle n'existe
-                        pas.
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>xset("wpos",[x,y])</term>
-                <listitem>
-                    <para>Choisit la position (en pixels) du point en haut à gauche de
-                        la fenêtre graphique.
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>xset("wresize",flag)</term>
-                <listitem>
-                    <para>Si flag=1 alors les graphiques sont automatiquement
-                        redimensionnés de manière à   remplir la fenêtre graphique.
-                    </para>
-                    <programlisting role=""><![CDATA[
-xdel();
-xset("wresize",1);
-plot2d();
-xset("wdim",1000,500)
- ]]></programlisting>
-                    <para>Si flag=0 l'échelle des graphiques est inchangée quand la
-                        fenêtre est redimensionnée. Le "panner" en haut à   gauche de la
-                        fenêtre ou les flèches du clavier peuvent être utilisées pour faire
-                        glisser le contenu de la fenêtre.
-                    </para>
-                    <programlisting role=""><![CDATA[
-xdel();
-plot2d();
-xset("wresize",0);
-xset("wdim",1000,500)
- ]]></programlisting>
-                </listitem>
-            </varlistentry>
         </variablelist>
+        <refsect2>
+            <title>Equivalences à substituer</title>
+            <para>
+            <literal>xset(..)</literal> ne répondait rien. SVP prendre soin d'ajouter un
+             point-virgule après les instructions utilisées en remplacement et listées ci-dessous,
+             afin de neutraliser l'affichage des résultats que celles-ci fournissent.
+            </para>
+        <screen><![CDATA[
+// SCILAB 3 & 4                 SCILAB N>4
+// ------------                 ----------
+xset("default")                 clf("reset")
+
+xset("wpos", [x y])             gcf().figure_position = [x y];
+xset("wpdim", w, h)             gcf().figure_size = [w h];
+xset("wdim", w, h)              gcf().figure_size = [w h];
+xset("wresize", 0|1)  HS        gcf().auto_resize = "off"|"on";
+xset("colormap", CM)            gcf().color_map = CM;
+xset("figure", i)               scf(i);
+xset("window", i)               scf(i);
+xset("viewport", xp,yp)         gcf().viewport = [xp yp];
+
+xset("auto clear","on"|"off")   gca().auto_clear = "on"|"off";
+xset("line mode", 0|1)          gca().line_mode = "off"|"on";
+xset("line style", n)           gca().line_style = n;
+xset("dashes", n)               gca().line_style = n;
+xset("thickness", n)            gca().thickness = n;
+xset("font size", s)            gca().font_size = s;
+xset("font", id, fsize)         set(gca(), "font_style", id, "font_size", fsize);
+xset("mark size", msize)        set(gca(), "mark_size_unit", "tabulated", "mark_size", msize);
+xset("mark", id, msize)         set(gca(), "mark_style", id, "mark_size_unit", "tabulated", "mark_size", msize);
+xset("color", icol)             gca().foreground = icol;
+xset("color", 0)                gca().foreground = -1;
+xset("pattern", icol)           gca().foreground = icol;
+xset("pattern", 0)              gca().foreground = -1;
+xset("foreground", icol)        gca().foreground = icol;
+xset("background", icol)        gca().background = icol;
+xset("hidden3d", icol)          gca().hiddencolor = icol;
+
+xset("clipping", rect)          set(gca(), "clip_box", rect, "clip_state", "on");
+xset("clipgrf")                 gca().clip_state = "clipgrf";
+xset("clipoff")                 gca().clip_state = "off";
+
+xset("alufunction",i)           gcf().pixel_drawing_mode = str(i);
+                                #i   str(i)
+                                --   ------
+                                0 => "clear"
+                                1 => "and"
+                                2 => "andReverse"
+                                3 => "copy"
+                                4 => "andInverted"
+                                5 => "noop"
+                                6 => "xor"
+                                7 => "or"
+                                8 => "nor"
+                                9 => "equiv"
+                                10 => "invert"
+                                11 => "orReverse"
+                                12 => "copyInverted"
+                                13 => "orInverted"
+                                14 => "nand"
+                                15 => "set"
+]]></screen>
+        </refsect2>
     </refsection>
     <refsection role="see also">
         <title>Voir aussi</title>
@@ -332,17 +142,54 @@ xset("wdim",1000,500)
                 <link linkend="xget">xget</link>
             </member>
             <member>
-                <link linkend="getcolor">getcolor</link>
+                <link linkend="set">set</link>
             </member>
             <member>
-                <link linkend="ged">ged</link>
+                <link linkend="graphics_entities">graphics entities</link>
             </member>
             <member>
-                <link linkend="set">set</link>
+                <link linkend="gcf">gcf</link>
+            </member>
+            <member>
+                <link linkend="gdf">gdf</link>
+            </member>
+            <member>
+                <link linkend="gca">gca</link>
             </member>
             <member>
-                <link linkend="graphics_entities">graphics_entities</link>
+                <link linkend="gda">gda</link>
+            </member>
+            <member>
+                <link linkend="ged">ged</link>
+            </member>
+            <member>
+                <link linkend="getcolor">getcolor</link>
             </member>
         </simplelist>
     </refsection>
+    <refsection>
+        <title>Historique</title>
+        <revhistory>
+            <revision>
+                <revnumber>5.0.1</revnumber>
+                <revremark>
+                    La propriété <literal>"alufunction"</literal> est obsolète et n'est plus
+                    prise en compte pour les affichages graphiques. Elle est remplacée par
+                    <literal>gcf().pixel_drawing_mode</literal>.
+                </revremark>
+            </revision>
+            <revision>
+                <revnumber>5.4.0</revnumber>
+                <revremark>
+                    La propriété <literal>"alufunction"</literal> n'est plus admise.
+                </revremark>
+            </revision>
+            <revision>
+                <revnumber>6.0.0</revnumber>
+                <revremark>
+                    Seule l'instruction <literal>xset("fpf", format)</literal> est désormais admise.
+                </revremark>
+            </revision>
+        </revhistory>
+    </refsection>
 </refentry>
index 1337f2e..2a1fc17 100644 (file)
@@ -1,14 +1,9 @@
 <?xml version="1.0" encoding="UTF-8"?>
-
 <!--
-
  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
-
  * Copyright (C) ENPC - Jean-Philippe Chancelier
-
+ * Copyright (C) 2017 - Samuel GOUGEON
  *
-
-
  * Copyright (C) 2012 - 2016 - Scilab Enterprises
  *
  * This file is hereby licensed under the terms of the GNU GPL v2.0,
  * and continues to be available under such terms.
  * For more information, see the COPYING file which you should have received
  * along with this program.
-
  *
-
  -->
-
-<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="ja" xml:id="xset">
-
+<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="ja" xml:id="xset">
     <refnamediv>
-
         <refname>xset</refname>
-
         <refpurpose>
-
-            グラフィックコンテキストの値を設定.
-
-            <emphasis role="bold">この関数は廃止されました.</emphasis>
-
+            グラフィックコンテキストの値を設定. <emphasis role="bold">この関数は廃止されました.</emphasis>
         </refpurpose>
-
     </refnamediv>
-
     <refsynopsisdiv>
-
         <title>呼び出し手順</title>
-
-        <synopsis>xset(choice-name,x1,x2,x3,x4,x5)
-
-            xset()
-
+        <synopsis>
+            xset(choice-name,x1,x2,x3,x4,x5)
         </synopsis>
-
     </refsynopsisdiv>
-
     <refsection>
-
         <title>引数</title>
-
         <variablelist>
-
             <varlistentry>
-
                 <term>choice-name</term>
-
                 <listitem>
-
                     <para>string</para>
-
                 </listitem>
-
             </varlistentry>
-
             <varlistentry>
-
                 <term>x1,...,x5</term>
-
                 <listitem>
-
                     <para>
-
                         <literal>choice-name</literal>に依存
-
                     </para>
-
                 </listitem>
-
             </varlistentry>
-
         </variablelist>
-
     </refsection>
-
     <refsection>
-
         <title>説明</title>
-
-        <para>
-
-            <warning>
-
-                この関数は廃止されました.
-
-            </warning>
-
+        <warning>
+            <emphasis role="bold">この関数は廃止されました</emphasis>.
             替わりにScilabグラフィックオブジェクトの記法を使用してください
-
             (<link linkend="set">set</link> および <link linkend="get">get</link>
-
             関数および<link linkend="graphics_entities">graphics_entities</link>
-
             のヘルプページを参照ください).
-
-        </para>
-
+        </warning>
         <para>
-
             <literal>xset</literal> は現在のウインドウグラフィックコンテキストの
-
             デフォルト値を設定する際に使用されます.
-
-        </para>
-
-        <para>
-
-            引数を指定せずにコールした場合,
-
-            現在の値を表示する選択メニューが作成され,
-
-            トグルボタンにより変更が可能です.
-
-        </para>
-
-        <para>
-
-            現在の色,マーカ,使用するフォントを表示または設定する際には
-
-            <literal>xset()</literal> を使用してください.
-
         </para>
-
-        <para/>
-
         <variablelist>
-
-            <varlistentry>
-
-                <term>xset("auto clear","on"|"off")</term>
-
-                <listitem>
-
-                    <para>
-
-                        グラフィックの自動消去モードの "on" または "off"を切替ます.
-
-                        自動消去モードが"on"の場合,
-
-                        連続的なプロットは重ねて表示されません.
-
-                        つまり,各高レベルグラフィック関数の前に
-
-                        <literal>clf()</literal>処理
-
-                        (グラフィックウインドウが消去され,
-
-                        関連する記録されたグラフィックが消去される)
-
-                        が実行されます.
-
-                        デフォルト値は "off" です.
-
-                    </para>
-
-                </listitem>
-
-            </varlistentry>
-
-            <varlistentry>
-
-                <term>xset("background",color)</term>
-
-                <listitem>
-
-                    <para>
-
-                        現在の軸オブジェクトの背景色を設定します.
-
-                        <literal>color</literal>引数は使用する色の
-
-                        カラーマップ添字です.
-
-                    </para>
-
-                </listitem>
-
-            </varlistentry>
-
-            <varlistentry>
-
-                <term>xset("clipping",x,y,w,h)</term>
-
-                <listitem>
-
-                    <para>
-
-                        クリッピング領域を設定(プロットが描画される
-
-                        グラフィックウインドウの領域)を
-
-                        矩形(x,y,w,h) (左上の点 幅 高さ)に設定します.
-
-                        この関数は現在のプロットの座標系を使用します.
-
-                    </para>
-
-                </listitem>
-
-            </varlistentry>
-
-            <varlistentry>
-
-                <term>xset("color",value)</term>
-
-                <listitem>
-
-                    <para>
-
-                        塗るつぶし用, 線またはテキスト描画関数用のデフォルト色を
-
-                        設定します.
-
-                        <literal>value</literal> は,範囲 [0,whiteid]に
-
-                        投影された整数です.
-
-                        黒塗りつぶしの場合は0,白の場合はwhiteidが使用されます.
-
-                        whiteidの値は
-
-                        <literal>xget("white")</literal>で取得できます.
-
-                    </para>
-
-                </listitem>
-
-            </varlistentry>
-
-            <varlistentry>
-
-                <term>xset("colormap",cmap)</term>
-
-                <listitem>
-
-                    <para>
-
-                        Set the colormap as a m x 3 matrix. m is the number of colors.
-
-                        Color number i is given as a 3-uple cmap(i,1), cmap(i,2), cmap(i,3)
-
-                        corresponding respectively to red, green and blue intensity between 0
-
-                        and 1.
-
-                    </para>
-
-                </listitem>
-
-            </varlistentry>
-
-            <varlistentry>
-
-                <term>xset("dashes",i)</term>
-
-                <listitem>
-
-                    <para>
-
-                        In black and white mode (<literal>xset("use color",0)</literal>), set
-
-                        the dash style to style i (0 for solid line). In color mode
-
-                        (<literal>xset("use color",1 )</literal>) this is used to set line, mark and
-
-                        text color. This keyword is obsolete, please use
-
-                        <literal>xset('color',i)</literal> or <literal>xset('line style',i)</literal>
-
-                        instead.
-
-                    </para>
-
-                </listitem>
-
-            </varlistentry>
-
-            <varlistentry>
-
-                <term>xset("default")</term>
-
-                <listitem>
-
-                    <para>Reset the graphics context to default values.</para>
-
-                </listitem>
-
-            </varlistentry>
-
             <varlistentry>
-
-                <term>xset("font",fontid,fontsize)</term>
-                <listitem>
-                    <para>
-                        Set the current font and its current size.
-                        Note that <literal>fontsize</literal> applies to all fonts not
-                        only <literal>fontid</literal> .
-                    </para>
-
-                </listitem>
-
-            </varlistentry>
-
-            <varlistentry>
-
-                <term>xset("font size",fontsize)</term>
-
-                <listitem>
-
-                    <para>Set the fonts size.</para>
-
-                </listitem>
-
-            </varlistentry>
-
-            <varlistentry>
-
-                <term>xset("foreground",color)</term>
-
-                <listitem>
-
-                    <para>Set the foreground color of the current Axes object.
-
-                        The <literal>color</literal> argument is the colormap index of the color to use.
-
-                    </para>
-
-                </listitem>
-
-            </varlistentry>
-
-            <varlistentry>
-
                 <term>xset("fpf",string)</term>
-
                 <listitem>
-
                     <para>Set the floating point format for number display in contour
-
                         functions. <literal>string</literal> is a string giving the format in C
-
                         format syntax (for example <literal>string="%.3f"</literal>). Use
-
                         <literal>string=""</literal> to switch back to default format.
-
                     </para>
-
                 </listitem>
-
             </varlistentry>
-
-            <varlistentry>
-
-                <term>xset("hidden3d",colorid)</term>
-                <listitem>
-                    <para>
-                        Set the color number for backward facing faces in
-                        <literal>plot3d</literal>. <literal>colorid=0</literal> zero suppress the
-                        drawing of backward facing faces of 3d objects. This is technically
-                        called 'culling' and speeds up the rendering of closed surfaces.
-                    </para>
-                </listitem>
-
-            </varlistentry>
-
-            <varlistentry>
-
-                <term>xset("line mode",type)</term>
-
-                <listitem>
-
-                    <para>This function is used to set the line drawing mode. Absolute
-
-                        mode is set with type=1 and relative mode with type=0. (Warning: the
-
-                        mode type=0 has bugs)
-
-                    </para>
-
-                </listitem>
-
-            </varlistentry>
-
-            <varlistentry>
-
-                <term>xset("line style",value)</term>
-
-                <listitem>
-
-                    <para>Set the current line style (1: solid, &gt;1 for dashed
-
-                        lines).
-
-                    </para>
-
-                </listitem>
-
-            </varlistentry>
-
-            <varlistentry>
-
-                <term>xset("mark",markid,marksize)</term>
-
-                <listitem>
-
-                    <para>Set the current mark and the current mark size. Use
-
-                        <literal>xset()</literal> to see the marks. Note that <literal>marksize</literal>
-
-                        applies to all marks not only <literal>markid</literal> .
-
-                    </para>
-
-                </listitem>
-
-            </varlistentry>
-
-            <varlistentry>
-
-                <term>xset("mark size",marksize)</term>
-
-                <listitem>
-
-                    <para>Set the marks size.</para>
-
-                </listitem>
-
-            </varlistentry>
-
-            <varlistentry>
-
-                <term>xset("pattern",value)</term>
-
-                <listitem>
-
-                    <para>Set the current pattern for filling functions. value is an
-
-                        integer projected in the interval [0,whiteid]. 0 is used for black
-
-                        filling and whiteid for white. The value of whiteid can be obtained
-
-                        with <literal>xget("white")</literal>. "pattern" is equivalent to
-
-                        "color".
-
-                    </para>
-
-                </listitem>
-
-            </varlistentry>
-
-            <varlistentry>
-
-                <term>xset("thickness",value)</term>
-
-                <listitem>
-
-                    <para>Set the thickness of lines in pixel (0 and 1 have the same
-
-                        meaning: 1 pixel thick).
-
-                    </para>
-
-                </listitem>
-
-            </varlistentry>
-
-            <varlistentry>
-
-                <term>xset("use color",flag)</term>
-
-                <listitem>
-
-                    <para>
-
-                        If flag=1 then <literal>xset("pattern",.)</literal> or
-
-                        <literal>xset("dashes",.)</literal> will be used so as to change the default
-
-                        color for drawing or for filling patterns. If flag=0 then we switch
-
-                        back to the gray and dashes mode.
-
-                    </para>
-
-                </listitem>
-
-            </varlistentry>
-
-            <varlistentry>
-
-                <term>xset("viewport",x,y)</term>
-
-                <listitem>
-
-                    <para>Set the position of the panner.</para>
-
-                </listitem>
-
-            </varlistentry>
-
-            <varlistentry>
-
-                <term>xset("wdim",width,height)</term>
-
-                <listitem>
-
-                    <para>Set the width and the height of the current graphics window.
-
-                        This option is not used by the postscript driver.
-
-                    </para>
-
-                </listitem>
-
-            </varlistentry>
-
-            <varlistentry>
-
-                <term>xset("wpdim",width,height)</term>
-
-                <listitem>
-
-                    <para>Sets the width and the height of the current physical graphic
-
-                        window (which can be different from the actual size in mode wresize
-
-                        1). This option is not used by the postscript driver.
-
-                    </para>
-
-                </listitem>
-
-            </varlistentry>
-
-            <varlistentry>
-
-                <term>xset("window",window-number)</term>
-
-                <listitem>
-
-                    <para>
-
-                        Set the current window to the window <literal>window-number</literal>
-
-                        and creates the window if it does not exist.
-
-                    </para>
-
-                </listitem>
-
-            </varlistentry>
-
-            <varlistentry>
-
-                <term>xset("wpos",x,y)</term>
-
-                <listitem>
-
-                    <para>Set the position of the upper left point of the graphics
-
-                        window.
-
-                    </para>
-
-                </listitem>
-
-            </varlistentry>
-
-            <varlistentry>
-
-                <term>xset("wresize",flag)</term>
-
-                <listitem>
-
-                    <para>If flag=1 then the graphic is automatically resized to fill the
-
-                        graphics window.
-
-                    </para>
-
-                    <programlisting role=""><![CDATA[
-xdel();
-xset("wresize",1);
-plot2d();
-xset("wdim",1000,500)
- ]]></programlisting>
-
-                    <para>If flag=0 the scale of the graphic is left unchanged when the
-
-                        graphics window is resized. Top left panner or keyboard arrows may be
-
-                        used to scroll over the graphic.
-
-                    </para>
-
-                    <programlisting role=""><![CDATA[
-xdel();
-plot2d();
-xset("wresize",0);
-xset("wdim",1000,500)
- ]]></programlisting>
-
-                </listitem>
-
-            </varlistentry>
-
         </variablelist>
-
+        <refsect2>
+            <title>Replacements</title>
+            <para>
+            <literal>xset(..)</literal> returned nothing. Please take care appending a semi-colon
+            after replacement instructions in order to cancel the display of their output.
+            </para>
+        <screen><![CDATA[
+// SCILAB 3 & 4                 SCILAB N>4
+// ------------                 ----------
+xset("default")                 clf("reset")
+
+xset("wpos", [x y])             gcf().figure_position = [x y];
+xset("wpdim", w, h)             gcf().figure_size = [w h];
+xset("wdim", w, h)              gcf().figure_size = [w h];
+xset("wresize", 0|1)  HS        gcf().auto_resize = "off"|"on";
+xset("colormap", CM)            gcf().color_map = CM;
+xset("figure", i)               scf(i);
+xset("window", i)               scf(i);
+xset("viewport", xp,yp)         gcf().viewport = [xp yp];
+
+xset("auto clear","on"|"off")   gca().auto_clear = "on"|"off";
+xset("line mode", 0|1)          gca().line_mode = "off"|"on";
+xset("line style", n)           gca().line_style = n;
+xset("dashes", n)               gca().line_style = n;
+xset("thickness", n)            gca().thickness = n;
+xset("font size", s)            gca().font_size = s;
+xset("font", id, fsize)         set(gca(), "font_style", id, "font_size", fsize);
+xset("mark size", msize)        set(gca(), "mark_size_unit", "tabulated", "mark_size", msize);
+xset("mark", id, msize)         set(gca(), "mark_style", id, "mark_size_unit", "tabulated", "mark_size", msize);
+xset("color", icol)             gca().foreground = icol;
+xset("color", 0)                gca().foreground = -1;
+xset("pattern", icol)           gca().foreground = icol;
+xset("pattern", 0)              gca().foreground = -1;
+xset("foreground", icol)        gca().foreground = icol;
+xset("background", icol)        gca().background = icol;
+xset("hidden3d", icol)          gca().hiddencolor = icol;
+
+xset("clipping", rect)          set(gca(), "clip_box", rect, "clip_state", "on");
+xset("clipgrf")                 gca().clip_state = "clipgrf";
+xset("clipoff")                 gca().clip_state = "off";
+
+xset("alufunction",i)           gcf().pixel_drawing_mode = str(i);
+                                #i   str(i)
+                                --   ------
+                                0 => "clear"
+                                1 => "and"
+                                2 => "andReverse"
+                                3 => "copy"
+                                4 => "andInverted"
+                                5 => "noop"
+                                6 => "xor"
+                                7 => "or"
+                                8 => "nor"
+                                9 => "equiv"
+                                10 => "invert"
+                                11 => "orReverse"
+                                12 => "copyInverted"
+                                13 => "orInverted"
+                                14 => "nand"
+                                15 => "set"
+]]></screen>
+        </refsect2>
     </refsection>
-
-    <refsection>
-
-        <title>参照</title>
-
+    <refsection role="see also">
+        <title>See also</title>
         <simplelist type="inline">
-
             <member>
-
                 <link linkend="xget">xget</link>
-
             </member>
-
             <member>
-
-                <link linkend="getcolor">getcolor</link>
-
+                <link linkend="set">set</link>
             </member>
-
             <member>
-
-                <link linkend="ged">ged</link>
-
+                <link linkend="graphics_entities">graphics entities</link>
             </member>
-
             <member>
-
-                <link linkend="set">set</link>
-
+                <link linkend="gcf">gcf</link>
             </member>
-
             <member>
-
-                <link linkend="graphics_entities">graphics_entities</link>
-
+                <link linkend="gdf">gdf</link>
+            </member>
+            <member>
+                <link linkend="gca">gca</link>
+            </member>
+            <member>
+                <link linkend="gda">gda</link>
+            </member>
+            <member>
+                <link linkend="ged">ged</link>
+            </member>
+            <member>
+                <link linkend="getcolor">getcolor</link>
             </member>
-
         </simplelist>
-
     </refsection>
-
     <refsection>
-
-        <title>履歴</title>
-
+        <title>History</title>
         <revhistory>
-
             <revision>
-
+                <revnumber>5.0.1</revnumber>
+                <revremark>
+                    The <literal>.alufunction</literal> property is obsolete. It is no longer
+                    taken into account for graphical renderings. It is replaced with
+                    <literal>gcf().pixel_drawing_mode</literal>.
+                </revremark>
+            </revision>
+            <revision>
                 <revnumber>5.4.0</revnumber>
-
                 <revremark>
-
-                    The "alufunction" プロパティはもはやサポートされておらず,
-
-                    このプロパティは Scilab 5.0.1の描画では使用されいません.
-
+                    The <literal>"alufunction"</literal> is no longer supported..
+                </revremark>
+            </revision>
+            <revision>
+                <revnumber>6.0.0</revnumber>
+                <revremark>
+                    The only <literal>xset("fpf", format)</literal> syntax is now supported.
                 </revremark>
-
             </revision>
-
         </revhistory>
-
     </refsection>
-
-</refentry>
-
+</refentry>
\ No newline at end of file
index 43b8613..63b2ae8 100644 (file)
@@ -1,4 +1,4 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
+<?xml version="1.0" encoding="UTF-8"?>
 <!--
  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
  * Copyright (C) ENPC - Jean-Philippe Chancelier
  * along with this program.
  *
  -->
-<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="xset" xml:lang="pt">
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"
+    xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml"
+    xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook"
+    xmlns:scilab="http://www.scilab.org" xml:id="xset" xml:lang="pt">
     <refnamediv>
         <refname>xset</refname>
-        <refpurpose>ajusta valores para o contexto gráfico. Função
-            obsoleta
+        <refpurpose>ajusta valores para o contexto gráfico. Função obsoleta
         </refpurpose>
     </refnamediv>
     <refsynopsisdiv>
         <title>Seqüência de Chamamento</title>
-        <synopsis>xset(choice-name,x1,x2,x3,x4,x5)
-            xset()
+        <synopsis>
+            xset(choice-name,x1,x2,x3,x4,x5)
         </synopsis>
     </refsynopsisdiv>
     <refsection>
     </refsection>
     <refsection>
         <title>Descrição</title>
-        <para>Aviso: está função está obsoleta. Utilize a representação de objetos
-            do Scilab ao invés (ver as documentações das funções <link linkend="set">set</link> e <link linkend="get">get</link> bem como a
+        <warning>
+            <emphasis role="bold">Está função está obsoleta.</emphasis>
+            Utilize a representação de objetos do Scilab ao invés (ver as documentações das funções
+            <link linkend="set">set</link> e <link linkend="get">get</link> bem como a
             página <link linkend="graphics_entities">graphics_entities</link>).
-        </para>
+        </warning>
         <para>
             <literal>xset</literal> é utilizado para ajustar valores padrões do
             contexto da janela de gráficos corrente.
         </para>
-        <para>Quando chamado sem argumento, um menu de escolha é criado exibindo
-            os valores correntes e mudanças podem ser realizadas através e botões de
-            escolha.
-        </para>
-        <para>
-            Use <literal>xset()</literal> para exibir ou ajustar a cor corrente,
-            marca e fontes utilizadas.
-        </para>
-        <para/>
         <variablelist>
             <varlistentry>
-                <term>xset("alufunction",number)</term>
-                <listitem>
-                    <para>usado para ajustar a função lógica para desenho. A função
-                        lógica utilizada é ajustada por <literal>x1</literal>. Os valores
-                        usuais são: 3 para cópia (padrão), 6 para animação e 0 para limpeza.
-                        Ver alufunctions para mais detalhes.
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>xset("auto clear","on"|"off")</term>
-                <listitem>
-                    <para>alterna o modo de limpeza automática para gráficos entre "on"
-                        e "off" . Quando o modo de limpeza automática é "on", esboços
-                        sucessivos não são superpostos, ie, uma operação
-                        <literal>clf()</literal> (a janela de gráficos é limpa e os
-                        gráficos gravados associados são apagados) é realizada antes de cada
-                        função gráfica de alto-nível. O valor padrão é "off".
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>xset("background",color)</term>
-                <listitem>
-                    <para>ajusta a cor de plano de fundo do objeto Axes corrente. O
-                        argumento <literal>color</literal> é um índice no mapa de cores da
-                        cor a ser utilizada.
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>xset("clipping",x,y,w,h)</term>
-                <listitem>
-                    <para>ajusta a zona de recorte (a zona da janela de gráficos onde os
-                        esboços podem ser desenhados) como sendo o retângulo (x,y,w,h)
-                        (ponto superior esquerdo, largura, altura). Esta função utiliza a
-                        utiliza as coordenadas correntes do esboço.
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>xset("color",value)</term>
-                <listitem>
-                    <para>ajusta a cor padrão para funções de preechimento, linha ou
-                        impressão de textos. <literal>value</literal> é um inteiro projetado
-                        no intervalo [0,whiteid]. 0 é usado para preenchimento com preto e
-                        whiteid para preenchimento com branco. O valor do identificador do
-                        branco pode ser obtido através de
-                        <literal>xget("white")</literal>.
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>xset("colormap",cmap)</term>
-                <listitem>
-                    <para>ajusta o mapa de cores como sendo uma matriz m x 3. m é o
-                        número de cores. A cor de número i é dada como sendo a tripla
-                        cmap(i,1), cmap(i,2), cmap(i,3) correspondentes respectivamente às
-                        intensidades de vermelho, verde e azul entre 0 e 1.
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>xset("dashes",i)</term>
-                <listitem>
-                    <para>
-                        no modo preto e branco (<literal>xset("use
-                            color",0)
-                        </literal>
-                        ), ajusta o estilo de tracejado como o estilo i
-                        (0 para linha sólida). No modo colorido (<literal>xset("use color",1
-                            )
-                        </literal>
-                        )é utilizado para ajustar a cor da linha, da marca e do
-                        texto. Esta palavra-chave está obsoleta, utilize
-                        <literal>xset('color',i)</literal> ou <literal>xset('line
-                            style',i)
-                        </literal>
-                        ao invés.
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>xset("default")</term>
-                <listitem>
-                    <para>reajusta o contexto gráfico para valores padrões.</para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>xset("font",fontid,fontsize)</term>
-                <listitem>
-                    <para>ajusta a fonte corrente e seu tamanho. Note que
-                        <literal>fontsize</literal> se aplica a todas as fontes, não só a
-                        <literal>fontid</literal> .
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>xset("font size",fontsize)</term>
-                <listitem>
-                    <para>ajusta o tamanho da fonte.</para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>xset("foreground",color)</term>
-                <listitem>
-                    <para>ajusta a cor de primeiro plano do objeto Axes corrente. O
-                        argumento <literal>color</literal> é um índice no mapa de cores da
-                        cor a ser utilizada.
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
                 <term>xset("fpf",string)</term>
                 <listitem>
                     <para>ajusta o formato de exibição de ponto flutuante para funções
                     </para>
                 </listitem>
             </varlistentry>
-            <varlistentry>
-                <term>xset("hidden3d",colorid)</term>
-                <listitem>
-                    <para>ajusta o número de cor para as faces escondidas em um
-                        <literal>plot3d. colorid=0</literal> suprime o desenho de faces
-                        escondidas de objetos 3d. Isto é tecnicamente chamdo 'culling' e
-                        acelera a renderização de superfícies fechadas.
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>xset("line mode",type)</term>
-                <listitem>
-                    <para>esta função é utilizada para se ajustar o modo de desenho da
-                        linha. O modo absoluto é ajustado com type= 1 e o modo relativo com
-                        type=0. (aviso: o modo type= 0 possui defeitos)
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>xset("line style",value)</term>
-                <listitem>
-                    <para>ajusta o estilo de linha corrente (1: sólida, &gt;1 estilos
-                        tracejados).
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>xset("mark",markid,marksize)</term>
-                <listitem>
-                    <para>ajusta a marca corrente e seu tamanho. Use
-                        <literal>xset()</literal> para visualizar as marcas. Note que
-                        <literal>marksize</literal> se aplica a todas as marcas, não apenas
-                        a <literal>markid</literal> .
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>xset("mark size",marksize)</term>
-                <listitem>
-                    <para>ajusta o tamanho da marca.</para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>xset("pattern",value)</term>
-                <listitem>
-                    <para>ajusta o padrão (pattern, não confundir com padrão = default)
-                        corrente para funções de preenchimento. O valor é um inteiro
-                        projetado no intervalo [0,whiteid]. 0 é utilizado para preenchimento
-                        com preto e whiteid para preenchimento com branco. O valor de
-                        whiteid pode ser obtido com <literal>xget("white")</literal>.
-                        "pattern" é equivalente a "color".
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>xset("thickness",value)</term>
-                <listitem>
-                    <para>ajusta o valor de espessura das linhas em pixel (0 e 1 têm o
-                        mesmo significado: 1 pixel de espessura).
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>xset("use color",flag)</term>
-                <listitem>
-                    <para>
-                        se flag=1, então <literal>xset("pattern",.)</literal> ou
-                        <literal>xset("dashes",.)</literal> será utilizado de modo a
-                        modificar a cor padrão para desenho ou para padrões de
-                        preenchimento. Se flag=0 então retorna-se ao modo de escalas de
-                        cinza e tracejados.
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>xset("viewport",x,y)</term>
-                <listitem>
-                    <para>ajusta a posição do cursor.</para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>xset("wdim",width,height)</term>
-                <listitem>
-                    <para>ajusta a largura e altura da janela de gráficos corrente. Esta
-                        opção não é utilizada pelo driver Postscript.
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>xset("wpdim",width,height)</term>
-                <listitem>
-                    <para>ajusta a largura e altura da janela de gráficos física
-                        corrente (que pode ser diferente do tamanho atual no modo wresize
-                        1). Esta opção não é utilizada pelo driver Postscript.
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>xset("window",window-number)</term>
-                <listitem>
-                    <para>
-                        ajusta a janela <literal>window-number</literal> como sendo a
-                        janela corrente e cria a janela se esta não existir.
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>xset("wpos",[x,y])</term>
-                <listitem>
-                    <para>ajusta a posição do ponto superior esquerdo da janela de
-                        gráficos.
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>xset("wresize",flag)</term>
-                <listitem>
-                    <para>se flag= 1então o gráfico é automaticamente redimensionado
-                        para preencher a janela de gráficos.
-                    </para>
-                    <programlisting role=""><![CDATA[
-xdel();
-xset("wresize",1);
-plot2d();
-xset("wdim",1000,500)
- ]]></programlisting>
-                    <para>Se flag=0 a escala do gráfico é inalterada quando a janela de
-                        gráfico é redimensionada. O cursor no canto superior esquerdo ou as
-                        setas do teclado podem ser utilizadas para rolar o gráfico .
-                    </para>
-                    <programlisting role=""><![CDATA[
-xdel();
-plot2d();
-xset("wresize",0);
-xset("wdim",1000,500)
- ]]></programlisting>
-                </listitem>
-            </varlistentry>
         </variablelist>
+        <refsect2>
+            <title>Replacements</title>
+            <para>
+            <literal>xset(..)</literal> returned nothing. Please take care appending a semi-colon
+            after replacement instructions in order to cancel the display of their output.
+            </para>
+        <screen><![CDATA[
+// SCILAB 3 & 4                 SCILAB N>4
+// ------------                 ----------
+xset("default")                 clf("reset")
+
+xset("wpos", [x y])             gcf().figure_position = [x y];
+xset("wpdim", w, h)             gcf().figure_size = [w h];
+xset("wdim", w, h)              gcf().figure_size = [w h];
+xset("wresize", 0|1)  HS        gcf().auto_resize = "off"|"on";
+xset("colormap", CM)            gcf().color_map = CM;
+xset("figure", i)               scf(i);
+xset("window", i)               scf(i);
+xset("viewport", xp,yp)         gcf().viewport = [xp yp];
+
+xset("auto clear","on"|"off")   gca().auto_clear = "on"|"off";
+xset("line mode", 0|1)          gca().line_mode = "off"|"on";
+xset("line style", n)           gca().line_style = n;
+xset("dashes", n)               gca().line_style = n;
+xset("thickness", n)            gca().thickness = n;
+xset("font size", s)            gca().font_size = s;
+xset("font", id, fsize)         set(gca(), "font_style", id, "font_size", fsize);
+xset("mark size", msize)        set(gca(), "mark_size_unit", "tabulated", "mark_size", msize);
+xset("mark", id, msize)         set(gca(), "mark_style", id, "mark_size_unit", "tabulated", "mark_size", msize);
+xset("color", icol)             gca().foreground = icol;
+xset("color", 0)                gca().foreground = -1;
+xset("pattern", icol)           gca().foreground = icol;
+xset("pattern", 0)              gca().foreground = -1;
+xset("foreground", icol)        gca().foreground = icol;
+xset("background", icol)        gca().background = icol;
+xset("hidden3d", icol)          gca().hiddencolor = icol;
+
+xset("clipping", rect)          set(gca(), "clip_box", rect, "clip_state", "on");
+xset("clipgrf")                 gca().clip_state = "clipgrf";
+xset("clipoff")                 gca().clip_state = "off";
+
+xset("alufunction",i)           gcf().pixel_drawing_mode = str(i);
+                                #i   str(i)
+                                --   ------
+                                0 => "clear"
+                                1 => "and"
+                                2 => "andReverse"
+                                3 => "copy"
+                                4 => "andInverted"
+                                5 => "noop"
+                                6 => "xor"
+                                7 => "or"
+                                8 => "nor"
+                                9 => "equiv"
+                                10 => "invert"
+                                11 => "orReverse"
+                                12 => "copyInverted"
+                                13 => "orInverted"
+                                14 => "nand"
+                                15 => "set"
+]]></screen>
+        </refsect2>
     </refsection>
     <refsection role="see also">
         <title>Ver Também</title>
@@ -337,17 +142,54 @@ xset("wdim",1000,500)
                 <link linkend="xget">xget</link>
             </member>
             <member>
-                <link linkend="getcolor">getcolor</link>
+                <link linkend="set">set</link>
             </member>
             <member>
-                <link linkend="ged">ged</link>
+                <link linkend="graphics_entities">graphics entities</link>
             </member>
             <member>
-                <link linkend="set">set</link>
+                <link linkend="gcf">gcf</link>
+            </member>
+            <member>
+                <link linkend="gdf">gdf</link>
+            </member>
+            <member>
+                <link linkend="gca">gca</link>
             </member>
             <member>
-                <link linkend="graphics_entities">graphics_entities</link>
+                <link linkend="gda">gda</link>
+            </member>
+            <member>
+                <link linkend="ged">ged</link>
+            </member>
+            <member>
+                <link linkend="getcolor">getcolor</link>
             </member>
         </simplelist>
     </refsection>
-</refentry>
+    <refsection>
+        <title>History</title>
+        <revhistory>
+            <revision>
+                <revnumber>5.0.1</revnumber>
+                <revremark>
+                    The <literal>.alufunction</literal> property is obsolete. It is no longer
+                    taken into account for graphical renderings. It is replaced with
+                    <literal>gcf().pixel_drawing_mode</literal>.
+                </revremark>
+            </revision>
+            <revision>
+                <revnumber>5.4.0</revnumber>
+                <revremark>
+                    The <literal>"alufunction"</literal> is no longer supported..
+                </revremark>
+            </revision>
+            <revision>
+                <revnumber>6.0.0</revnumber>
+                <revremark>
+                    The only <literal>xset("fpf", format)</literal> syntax is now supported.
+                </revremark>
+            </revision>
+        </revhistory>
+    </refsection>
+</refentry>
\ No newline at end of file
diff --git a/scilab/modules/graphics/tests/unit_tests/xset_xget.dia.ref b/scilab/modules/graphics/tests/unit_tests/xset_xget.dia.ref
deleted file mode 100644 (file)
index 6d00a55..0000000
+++ /dev/null
@@ -1,86 +0,0 @@
-// =============================================================================
-// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
-// Copyright (C) 2011 - Scilab Enterprises - Bruno JOFRET
-//
-//  This file is distributed under the same license as the Scilab package.
-// =============================================================================
-// <-- TEST WITH GRAPHIC -->
-// test xset and xget
-// font
-out = xget("font");
-assert_checkequal(out, [6 1]);
-// font size
-out = xget("font size");
-assert_checkequal(out, 1);
-// fpf
-out = xget("fpf");
-assert_checkequal(out, "");
-xset("fpf", "%s.%s");
-out = xget("fpf");
-assert_checkequal(out, "%s.%s");
-// auto clear
-out = xget("auto clear");
-assert_checkequal(out, "off");
-// dashes
-out = xget("dashes");
-assert_checkequal(out, 1);
-xset("dashes", 2);
-out = xget("dashes");
-assert_checkequal(out, 2);
-// hidden3d
-out = xget("hidden3d");
-assert_checkequal(out, 4);
-// window figure
-f = gcf();
-out = xget("window");
-assert_checkequal(out, f.figure_id);
-out = xget("figure");
-assert_checkequal(out, f.figure_id);
-// wdim wpdim
-out = xget("wdim");
-assert_checkequal(out, f.figure_size);
-out = xget("wpdim");
-assert_checkequal(out, f.figure_size);
-// wpos
-out = xget("wpos");
-assert_checkequal(out, f.figure_position);
-// viewport
-out = xget("viewport");
-assert_checkequal(out, f.viewport);
-// background
-out = xget("background");
-assert_checkequal(out, -2);
-// color foreground pattern
-out = xget("color");
-assert_checkequal(out, -1);
-out = xget("foreground");
-assert_checkequal(out, -1);
-out = xget("pattern");
-assert_checkequal(out, -1);
-// lastpattern
-out = xget("lastpattern");
-assert_checkequal(out, 32);
-// line mode
-out = xget("line mode");
-assert_checkequal(out, 1);
-// white
-out = xget("white");
-assert_checkequal(out, 34);
-// wresize
-out = xget("wresize");
-assert_checkequal(out, 1);
-// clipgrf
-out = xget("clipgrf");
-assert_checkequal(out, 0);
-// clipoff
-out = xget("clipoff");
-assert_checkequal(out, 1);
-// XSET
-ierr = execstr("xset(""fpf"");","errcatch");
-assert_checkequal(ierr, 77);
-ierr = execstr("xset(""dashes"");","errcatch");
-assert_checkequal(ierr, 77);
-ierr = execstr("xset(""color"");","errcatch");
-assert_checkequal(ierr, 77);
-ierr = execstr("xset(""pattern"");","errcatch");
-assert_checkequal(ierr, 77);
index 47c83b3..2254567 100644 (file)
@@ -6,6 +6,7 @@
 // =============================================================================
 
 // <-- TEST WITH GRAPHIC -->
+// <-- NO CHECK REF -->
 
 // test xset and xget
 
@@ -99,9 +100,3 @@ assert_checkequal(out, 1);
 // XSET
 ierr = execstr("xset(""fpf"");","errcatch");
 assert_checkequal(ierr, 77);
-ierr = execstr("xset(""dashes"");","errcatch");
-assert_checkequal(ierr, 77);
-ierr = execstr("xset(""color"");","errcatch");
-assert_checkequal(ierr, 77);
-ierr = execstr("xset(""pattern"");","errcatch");
-assert_checkequal(ierr, 77);