<< xget 2023
removed >> removed > 2023 > xset

xset

change des valeurs du contexte graphique

Séquence d'appel

xset(choice-name, x1, x2, x3, x4, x5)

Paramètres

choice-name
chaîne de caractères
x1,...,x5
dépend de choice-name

Description

Equivalences à substituer

xset(..) 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.

// 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"
xset("fpf", fmt)                contour2d(.., fpf=fmt)
                                contourf(.., fpf=fmt)
                                contour(.., fpf=fmt)

Voir aussi

Historique

VersionDescription
5.0.1 La propriété "alufunction" est obsolète et n'est plus prise en compte pour les affichages graphiques. Elle est remplacée par gcf().pixel_drawing_mode.
5.4.0 La propriété "alufunction" n'est plus admise.
6.0.0 Seule l'instruction xset("fpf", format) est désormais admise.
6.1.1 xset("fpf", format) est déclarée obsolète. contour2d, contourf, et contour2d admettent un nouvel argument d'entrée fpf.

xset() sera retirée de la prochaine version de Scilab.

<< xget 2023