
ORSCILAB
|
SCILAB 3.1 PAS-A-PAS
SCILAB 3.1 STEP-TO-STEP
Jacques-Deric
Rouault
Laboratoire de Neurobiologie de l'Apprentissage, de la
Mémoire et de la Communication. CNRS UMR 8620, Bat. 446,
Université Paris-Sud, F91400 Orsay
|
Volume
4
LE GRAPHISME
Volume 4 GRAPHISM |
4.39 OPTIONS GRAPHIQUES
4.39 GRAPHIC OPTIONS
|
Version 3.1.101 du 30 juin
2005
/ Version
3.1.101, June 30th 2005
|
Scilab 3.1.1
|
4.39.01 Introduction / Introduction
|
Les procédures
graphiques de haut niveau de Scilab, comme Matplot
ou plot2d,
utilisent des options de tracé qui comportent une syntaxe
commune qui est détaillée dans ce chapitre.
The high level graphic procedures of
Scilab,
such as Matplot or plot2d, use drawing
options with a common syntax, which is developped here.
4.39.02 Les 4 syntaxes / The 4 syntax
|
F1,
F2, F3, ... (Formes syntaxique fonctionnelles, Functionnal syntaxic
forms)
G1, G2, G3, G4 (Formes syntaxiques graphiques, Graphic syntaxic forms)
P1, P2, P3, ... (Formes syntaxiques procédurales, Procedural
syntaxic forms)
|
Chaque
procédure graphique est déclinée en 4 formes :
Each
graphic procedure exists in 4 syntax:
Une
première forme G1 sans option, par exemple Matplot (a). Les options sont
définies par défaut.
A
first form G1 without option, for instance Matplot (a). The options are
defined by default.
Une
seconde forme G2 avec des options impératives dans un ordre
donné, par exemple Matplot
(a, strfv, rectv, naxv). Les 3 options doivent toutes figurer.
A
second form G2 with mandatory options in a mandatory order, for
instance Matplot (a, strv, rectv,
naxv). All
the 3 options have to be presented.
Une
troisième forme G3 avec des options facultatives
représentées par des identificateurs dans un ordre
indifférent, par exemple Matplot
(a, nax=naxv). Les
autres options sont définies par défaut.
A
third form G3 with optional options in an indifferent order, for
instance Matplot (a, nax=naxv).
The
other options are defined by default.
Une quatrième forme G4 avec
une syntaxe analogue à Matlab, sous forme de couples
option-valeurs, par exemple plot
(y,'zdat',[1:2],'marker','d','markerfac','green','markeredg','yel')
.
Les
autres options sont définies par défaut.
A
fourth form G4 with a syntax analogous to Matlab, under the form of
couples option-value, for instance plot
(y,'zdat',[1:2],'marker','d','markerfac','green','markeredg','yel'). The
other options are defined by default.
Ces 4 formes
syntaxiques G1, G2, G3 et G4 se superposent aux différentes
formes syntaxiques procédurales P1, P2, P3, ... et/ou
fonctionnelles F1, F2, F3 ...
These
4 syntaxic forms G1, G2, G3 and G4 are superposed to the different
procedural P1, P2, P3 and/or functionnal F1, F2, F3 syntaxic forms.
4.39.03 Les options / The options
|
Les
différentes options G2 et G3 sont axesflag,
frameflag, leg, logflag, nax, rect, strf, style. Ces options sont
détaillées dans les sections 4.39.10 à 4.39.49.
The
different G2 and G3 options are axesflag,
frameflag, leg, logflag, nax, rect, strf, style. These options
are detailled in the sections 4.39.10 to 4.39.49.
Les
différentes options G4 sont color,
colordata, colordatamapping, clipping, edgecolor, facecolor,
foreground, linestyle, markbackground,
marker,
markeredgecolor, markerfacecolor, markersize, markforeground, markstyle,
marksize, visible, xdata, ydata, zdata.
Ces options sont uniquement développées pour les
procédures plot (voir 4.60.12 Procedure plot (3)) et surf
(voir 4.82.53
Procedure surf (v4)) .
The
different G2 and G3 options are color,
colordata, colordatamapping, clipping, edgecolor, facecolor,
foreground, linestyle, markbackground, marker, markeredgecolor,
markerfacecolor, markersize, markforeground, markstyle, marksize, visible,
xdata, ydata, zdata.
These options are only developped for procedures plot (see 4.60.12 Procedure plot (3))
and surf (see 4.82.53
Procedure surf (v4)).
4.39.04 Le graphique de
référence /
The reference graphic
|
Pour montrer les
modifications apportées par les différentes options, nous
allons prendre un graphique de référence et
expérimenter les différentes possibilités.
In
order to show the changes caused by the different options, we consider
a reference graphic and we experiment the different possibilities.
disp
("4.39.04A");
hf1 = scf (1);
hf1.figure_name = "4.39.04A";
ha1 = hf1.children,
x = [0:0.05:1];
plot2d (x,x**2);
ha1,
ha1.children,
xpause (5000000);
delete (hf1);
|

Voici les valeurs par
défaut du handle Axes.
Here
are the default values of handle Axes.
Handle of type "Axes" with properties:
======================================
parent: Figure
children: []
visible = "on"
axes_visible = ["off","off","off"]
axes_reverse = ["off","off","off"]
grid = [-1,-1]
x_location = "bottom"
y_location = "left"
title: "Label"
x_label: "Label"
y_label: "Label"
z_label: "Label"
auto_ticks = ["on","on","on"]
x_ticks.locations = [0;0.1;0.2;0.3;0.4;0.5;0.6;0.7;0.8;0.9;1]
y_ticks.locations = [0;0.1;0.2;0.3;0.4;0.5;0.6;0.7;0.8;0.9;1]
z_ticks.locations = [-1;0;1]
x_ticks.labels =
["0.0";"0.1";"0.2";"0.3";"0.4";"0.5";"0.6";"0.7";"0.8";"0.9";"1.0"]
y_ticks.labels =
["0.0";"0.1";"0.2";"0.3";"0.4";"0.5";"0.6";"0.7";"0.8";"0.9";"1.0"]
z_ticks.labels = ["-1";"0";"1"]
box = "off"
sub_ticks = [1,1]
font_style = 6
font_size = 1
font_color = -1
isoview = "off"
cube_scaling = "off"
view = "2d"
rotation_angles = [0,270]
log_flags = "nnn"
tight_limits = "off"
data_bounds = [0,0;1,1]
zoom_box = []
margins = [0.125,0.125,0.125,0.125]
axes_bounds = [0,0,1,1]
auto_clear = "off"
auto_scale = "on"
hiddencolor = 4
line_mode = "on"
line_style = 0
thickness = 1
mark_mode = "off"
mark_style = 0
mark_size_unit = "tabulated"
mark_size = 0
mark_foreground = -1
mark_background = -2
foreground = -1
background = -2
clip_state = "off"
clip_box = []
|
L'exécution de la
procédure plot2d entraine la modification de 5 champs
du Handle Axes (children, axes_visible, box, clip_state
et clip_box) avec un enfant
de type Agregation.
Running the procedure plot2d cause the modification of 5
fields of the handle Axes (children,
axes_visible, box, clip_state and clip_box), with a
children of type Agregation.
Handle of type "Axes" with
properties:
======================================
parent: Figure
children: "Agregation"
visible = "on"
axes_visible = ["on","on","on"]
axes_reverse = ["off","off","off"]
grid = [-1,-1]
x_location = "bottom"
y_location = "left"
title: "Label"
x_label: "Label"
y_label: "Label"
z_label: "Label"
auto_ticks = ["on","on","on"]
x_ticks.locations = [0;0.1;0.2;0.3;0.4;0.5;0.6;0.7;0.8;0.9;1]
y_ticks.locations = [0;0.1;0.2;0.3;0.4;0.5;0.6;0.7;0.8;0.9;1]
z_ticks.locations = [-1;0;1]
x_ticks.labels =
["0.0";"0.1";"0.2";"0.3";"0.4";"0.5";"0.6";"0.7";"0.8";"0.9";"1.0"]
y_ticks.labels =
["0.0";"0.1";"0.2";"0.3";"0.4";"0.5";"0.6";"0.7";"0.8";"0.9";"1.0"]
z_ticks.labels = ["-1";"0";"1"]
box = "on"
sub_ticks = [1,1]
font_style = 6
font_size = 1
font_color = -1
isoview = "off"
cube_scaling = "off"
view = "2d"
rotation_angles = [0,270]
log_flags = "nnn"
tight_limits = "off"
data_bounds = [0,0;1,1]
zoom_box = []
margins = [0.125,0.125,0.125,0.125]
axes_bounds = [0,0,1,1]
auto_clear = "off"
auto_scale = "on"
hiddencolor = 4
line_mode = "on"
line_style = 0
thickness = 1
mark_mode = "off"
mark_style = 0
mark_size_unit = "tabulated"
mark_size = 0
mark_foreground = -1
mark_background = -2
foreground = -1
background = -2
clip_state = "clipgrf"
clip_box = [0,0,1,1]
|
Le Handle Agregation. se compose d'un enfant
de type Polyline.
The handle Agregation contains a
children of type Polyline.
Handle of type "Agregation" with
properties:
============================================
parent: Axes
children: "Polyline"
visible = "on"
|
Dans les sections suivantes, nous
comparerons la figure et le handle Axes
à cette
référence pour mettre en évidence le role des
différentes options.
In
the following sections, we compare the figure and the value of handle Axes to this reference in order to
point out the role of the different options.
4.39.09 L'option leg / Option leg
|
L'option leg définit une
légende sous la forme d'une chaine de caractères.
The option leg defines a title under the form
of a character string.
disp
("4.39.09A");
hf = scf (1);
hf.figure_name = "4.39.09A";
ha = hf.children;
x = [0:0.05:1];
legende = "Parabole";
plot2d (x,x**2, leg=legende);
ha,
hg = ha.children (1),
hl = hg.children (1),
hp = hg.children (2),
xpause (5000000);
delete (hf);
|

La légende apparait sous l'axe des abscisses .
The legend appears under the axis
of abscissa .
hl
=
This object has no isline
Handle of type "Legend" with properties:
========================================
parent: Agregation
children: []
line_mode = "off"
mark_mode = "off"
mark_foreground = -1
mark_background = -2
foreground = -1
visible = "on"
text = "Parabole"
font_style = 6
font_size = 1
|
L'option leg est implémentée
dans les procédures plot2d,
.
The option leg is implemented with the
procedures plot2d, .
4.39.10
L'option strf "abc" / Option strf "abc"
|
L'option strf définit la façon
dont les axes vont être représentés dans la fenetre.
The option strf defines the way axes are
represented in the window.
L'option strf
se présente sous la forme d'une chaine de 3 caractères
numériques
"abc". La valeur par défaut est "081".
The option strf is presented under the
form of a 3 numeric characters string "abc". The default value is "081".
Le premier
caractère a prend les valeurs 0 à 1, et controle
l'affichage de la légende.
The first character a takes the
values 0 to 1, and controls the display of the legend.
Le deuxième
caractère b prend les
valeurs 0 à 8 et controle les bornes du tracé.
The second character b takes
the values 0 to 8 and controls the bounds of
drawing.
Le troisième
caractère c prend les valeurs 0 à 5 et controle le
tracé des axes.
The
third character c takes the
values 0 to 5 and controls the drawing of
axes.
disp
("4.39.10A");
hf = scf (1);
hf.figure_name = "4.39.10A";
ha = hf.children;
x = [0:0.05:1];
plot2d (x,x**2,strf="081");
ha,
xpause (5000000);
delete (hf);
|
On vérifiera que le
graphisme et le handle Axes
n'ont pas été modifiés par la valeur par
défaut strf = "081".
It may be controlled that the
graphism and the handle Axes
were not changed by using the default value strf = "081".
L'option strf est implémentée
dans les procédures plot2d,
Matplot.
The option strf is implemented with the
procedures plot2d, Matplot.
4.39.11
L'option strf (a=0) / Option strf (a=0)
|
L'option strf (a=0) inhibe l'affichage de la
légende. La valeur par défaut est a=0.
The option strf (a=0) inhibits the display of
the legend. The
default value is a=0.
disp
("4.39.11A");
hf = scf (1);
hf.figure_name = "4.39.11A";
ha = hf.children;
x = [0:0.05:1];
legende = "Parabole";
plot2d (x,x**2, strf="081", leg=legende);
ha,
hg = ha.children (1),
xpause (5000000);
delete (hf);
|
Handle
of type "Agregation" with properties:
============================================
parent: Axes
children: "Polyline"
visible = "on"
|
Le handle Legend n'apparait plus dans le
handle Agregation au
coté du handle Polyline.
The
handle Legend no more appears
in the handle Agregation
close to the handle Polyline.
4.39.12
L'option strf (a=1) / Option strf (a=1)
|
L'option strf (a=1) autorise l'affichage de
la légende. La valeur par défaut est a=0.
The option strf (a=1) allows the display of the
legend. The default
value is a=0.
disp
("4.39.12A");
hf = scf (1);
hf.figure_name = "4.39.12A";
ha = hf.children;
x = [0:0.05:1];
legende = "Parabole";
plot2d (x,x**2, strf="181", leg=legende);
ha;
xpause (5000000);
delete (hf);
|
Handle
of type "Agregation" with properties:
============================================
parent: Axes
children: ["Legend";"Polyline"]
visible = "on"
|
Le handle Legend apparait dans le handle Agregation au coté du handle
Polyline.
The
handle Legend appears in the
handle Agregation close to
the handle Polyline.
4.39.20
L'option strf (b=0) / Option strf (b=0)
|
L'option strf (b=0) ne modifie pas les bornes
du tracé. La valeur par défaut est b=8.
The option strf (b=0) does not modify the
bounds of drawing.
The default value is b=8.
disp
("4.39.20A");
hf = scf (1);
hf.figure_name = "4.39.20A";
ha = hf.children;
x = [0.2:0.05:0.8];
plot2d (x,x**2, strf="001" );
ha,
xpause (5000000);
delete (hf);
|

disp
("4.39.20B");
hf = scf (1);
hf.figure_name = "4.39.20B";
ha = hf.children;
x = [-1:0.05:2];
plot2d (x,x**2, strf="001" );
ha,
xpause (5000000);
delete (hf);
|

Les parties du dessin en dehors de
la zone de tracé sont ignorées.
The parts of the curve outside the
area of drawing are ignored.
4.39.21
L'option strf (b=1) / Option strf (b=1)
|
L'option strf (b=1) impose les bornes du
tracé désignées dans l'option rect. La valeur par défaut
est b=8.
The option strf (b=1) imposes the bounds of
drawing defined in option rect. The default value is b=8.
disp
("4.39.21A");
hf = scf (1);
hf.figure_name = "4.39.21A";
ha = hf.children;
x = [0:0.05:1];
rectval = [-0.1, 0.1, 0.8, 0.7];
plot2d (x,x**2, strf="011", rect=rectval );
ha,
xpause (5000000);
delete (hf);
|

data_bounds
= [-0.1,0.1;0.8,0.7]
|
Les parties du
dessin en dehors de la zone de tracé sont ignorées.
The parts of the curve outside the
area of drawing are ignored.
4.39.22
L'option strf (b=2) / Option strf (b=2)
|
L'option strf (b=2) impose les bornes du
tracé à partir des extremas de la courbe tracée.
La valeur par défaut est b=8.
The option strf (b=2) imposes the bounds of
drawing defined by extrema of the curve drawn. The default value is b=8.
disp
("4.39.22A");
hf = scf (1);
hf.figure_name = "4.39.22A";
ha = hf.children;
x = [-1:0.05:2];
plot2d (x,x**2, strf="021");
ha,
xpause (5000000);
delete (hf);
|

x_ticks.locations
= [-1;-0.5;0;0.5;1;1.5;2]
y_ticks.locations = [0;0.5;1;1.5;2;2.5;3;3.5;4]
z_ticks.locations = [-1;0;1]
x_ticks.labels = ["-1.0";"-0.5";"0.0";"0.5";"1.0";"1.5";"2.0"]
y_ticks.labels = ["0.0";"0.5";"1.0";"1.5";"2.0";"2.5";"3.0";"3.5";"4.0"]
z_ticks.labels = ["-1";"0";"1"]
data_bounds = [-1,0;2,4]
|
4.39.23
L'option strf (b=3) / Option strf (b=3)
|
L'option strf (b=3) impose les bornes du
tracé désignées dans l'option rect, comme avec b=1, mais avec en
plus une échelle isométrique (aussi longue que haute). La
valeur par défaut
est b=8.
The option strf (b=3) imposes the bounds of
drawing defined in option rect,
as for b=1, but with an isometric scale (as wise as heigh). The default value is b=8.
disp
("4.39.23A");
hf = scf (1);
hf.figure_name = "4.39.23A";
ha = hf.children;
x = [-1:0.05:1];
rectval = [-1.0, 0.0, 1.0, 1.0];
plot2d (x,x**2, strf="031", rect=rectval);
ha,
xpause (5000000);
delete (hf);
|

data_bounds
= [-1,0;1,1]
clip_box = [-1,-0.2557377,2,1.5114754]
|
L'échelle des
ordonnées a été étendue de [0, 1] à
[-0.25, 1.25].
The scale of ordinates is extended
from [0, 1] to [-0.25, 1.25].
Les parties du
dessin en dehors de la zone de tracé sont ignorées.
The parts of the curve outside the
area of drawing are ignored.
4.39.24
L'option strf (b=4) / Option strf (b=4)
|
L'option strf (b=4) impose les bornes du
tracé à partir des extremas de la courbe tracée, comme avec b=2, mais avec en plus une
échelle isométrique (aussi longue que haute). La valeur par défaut est b=8.
The option strf (b=4) imposes the bounds of
drawing defined by extrema of the curve drawn, as for b=1, but with an isometric
scale (as wide as high). The default value is b=8.
L'option strf (b=4) reprend la
fonctionnalité de la procédure obsolete isoview.
The option strf (b=4) resumes the
functionnality of the obsolete procedure isoview.
disp
("4.39.24A");
hf = scf (1);
hf.figure_name = "4.39.24A";
ha = hf.children;
x = [-3:0.05:3];
plot2d (x,x**2, strf="041" );
ha,
xpause (5000000);
delete (hf);
|

x_ticks.locations
= [-6;-4;-2;0;2;4;6]
x_ticks.labels = ["-6";"-4";"-2";"0";"2";"4";"6"]
data_bounds = [-3,0;3,9]
clip_box = [-5.9544469,0,11.908894,9]
|
L'échelle des
abscisses a été étendue de [-3, 3] à [-6,
6].
The scale of abscissa is extended
from [-3, 3] to [-6, 6].
4.39.25
L'option strf (b=5) / Option strf (b=5)
|
L'option strf (b=5) impose les bornes du
tracé désignées
dans l'option rect, comme
avec b=1, mais agrandis et arrondis. La valeur par défaut est b=8.
The option strf (b=5) imposes the bounds of
drawing defined in option rect,
as for b=1, but wider and rounded. The default value is b=8.
disp
("4.39.25A");
hf = scf (1);
hf.figure_name = "4.39.25A";
ha = hf.children;
x = [-1:0.05:1];
rectval = [-1.11, 0.002, 1.11,
1.19];
plot2d (x,x**2, strf="051", rect=rectval);
ha,
xpause (5000000);
delete (hf);
|

x_ticks.locations
= [-1.5;-1;-0.5;0;0.5;1;1.5]
y_ticks.locations = [0;0.2;0.4;0.6;0.8;1;1.2]
x_ticks.labels = ["-1.5";"-1.0";"-0.5";"0.0";"0.5";"1.0";"1.5"]
y_ticks.labels = ["0.0";"0.2";"0.4";"0.6";"0.8";"1.0";"1.2"]
data_bounds = [-1.11,0.002;1.11,1.19]
clip_state = "clipgrf"
clip_box = [-1.5,0,3,1.2]
|
L'échelle des
abscisses a été étendue de [-1.11, 1.11] à
[-1.5, 1.5].
The scale of abscissa is extended
from [-1.11, 1.11] to [-1.5, 1.5].
L'échelle des
ordonnées a été étendue de [0.002, 0.19]
à [0, 1.2].
The scale of ordinates is extended
from [0.002, 0.19] to [0, 1.2].
4.39.26
L'option strf (b=6) / Option strf (b=6)
|
L'option strf (b=6) impose les bornes du
tracé à partir des extremas de la courbe tracée, comme avec b=2, mais agrandis et arrondis. La valeur par défaut est b=8.
The option strf (b=6) imposes the bounds of
drawing defined by extrema of the curve drawn, as for b=1, but wider and rounded. The default value is b=8.
disp
("4.39.26A");
hf = scf (1);
hf.figure_name = "4.39.26A";
ha = hf.children;
x = [-2.45:0.05:2.23];
plot2d (x,x**2, strf="061" );
ha,
xpause (5000000);
delete (hf);
|

x_ticks.locations
= [-2.5;-2;-1.5;-1;-0.5;0;0.5;1;1.5;2;2.5]
y_ticks.locations = [0;1;2;3;4;5;6;7]
x_ticks.labels = matrix 11x1
y_ticks.labels = ["0";"1";"2";"3";"4";"5";"6";"7"]
data_bounds = [-2.45,0;2.2,6.0025]
clip_box = [-2.5,0,5,7]
|
L'échelle des
abscisses a été étendue de [-2.45, 2.2] à
[-2.5, 2.5].
The scale of abscissa is extended
from [-2.45, 2.0] to [-2.5, 2.5].
L'échelle des
ordonnées a été étendue de [0, 6.0025]
à [0, 7].
The scale of ordinates is extended
from [0, 6.0025] to [0, 7].
4.39.27
L'option strf (b=7) / Option strf (b=7)
|
L'option strf (b=7) impose les bornes du
tracé désignées
dans l'option rect, comme
avec b=1, mais les tracés précedents sont retracés
dans la nouvelle échelle. La valeur par défaut est b=8.
The option strf (b=7) imposes the bounds of
drawing defined in option rect,
as for b=1, but the previous plots are redrawn in the
new scale. The default value is b=8.
disp
("4.39.27A");
hf = scf (1);
hf.figure_name = "4.39.27A";
ha = hf.children;
x = [0:0.05:1];
rectval = [-0.5, -0.5, 1.5,1.5];
plot2d (x,0.5+x**2, strf="071", rect = rectval);
ha,
xpause (5000000);
hf.figure_name = "4.39.27A2";
x = [-1.5:0.05:1.5];
rectval = [-2, -1, 2,2];
plot2d (x,(x**2)/2, strf="071", rect=rectval);
ha,
xpause (5000000);
delete (hf);
|

x_ticks.locations
= [-0.5;0;0.5;1;1.5;2]
y_ticks.locations = [-0.5;0;0.5;1;1.5;2]
z_ticks.locations = [-1;0;1]
x_ticks.labels = ["-0.5";"0.0";"0.5";"1.0";"1.5";"2.0"]
y_ticks.labels = ["-0.5";"0.0";"0.5";"1.0";"1.5";"2.0"]
data_bounds = [-0.5,-0.5;1.5,1.5]
clip_box = [-0.5,-0.5,2,2]
|
L'échelle des
abscisses a été étendue de [0, 10] à [-0.5,
1.5].
The scale of abscissa is extended
from [0, 10] to [-0.5, 1.5].
L'échelle des
ordonnées a été étendue de [0, 1] à
[-0.5, 1.5].
The scale of ordinates is extended
from [0, 1] to [-0.5, 1.5].

x_ticks.locations
= [-2;-1.5;-1;-0.5;0;0.5;1;1.5;2]
y_ticks.locations = [-1;-0.5;0;0.5;1;1.5;2]
x_ticks.labels =
["-2.0";"-1.5";"-1.0";"-0.5";"0.0";"0.5";"1.0";"1.5";"2.0"]
y_ticks.labels = ["-1.0";"-0.5";"0.0";"0.5";"1.0";"1.5";"2.0"]
data_bounds = [-2,-1;2,2]
clip_box = [-2,-1,4,3]
|
L'échelle des
abscisses a été étendue de [-0.5,1.5] à
[-2, 2].
The scale of abscissa is extended
from [-0.5, 1.5] to [-2, 2].
L'échelle des
ordonnées a été étendue de [-0.5, 1.5]
à [-1, 2].
The scale of ordinates is extended
from [-0.5, 1.5] to [-1, 2].
4.39.28
L'option strf (b=8) / Option strf (b=8)
|
L'option strf (b=8) impose les bornes du
tracé à partir des extremas de la courbe tracée, comme avec b=2, mais agrandis et arrondis. La valeur par défaut est b=8.
The option strf (b=8) imposes the bounds of
drawing defined by extrema of the curve drawn, as for b=1, but wider and rounded. The default value is b=8.
disp
("4.39.28A");
hf = scf (1);
hf.figure_name = "4.39.28A1";
ha = hf.children;
x = [-1:0.05:2];
plot2d (x,0.5+x**2, strf="081" );
ha,
xpause (5000000);
hf.figure_name = "4.39.28A2";
x = [-2:0.05:3];
plot2d (x,x**2, strf="081" );
ha,
xpause (5000000);
delete (hf);
|

x_ticks.locations
= [-1;-0.5;0;0.5;1;1.5;2]
y_ticks.locations = [0.5;1;1.5;2;2.5;3;3.5;4;4.5]
x_ticks.labels = ["-1.0";"-0.5";"0.0";"0.5";"1.0";"1.5";"2.0"]
y_ticks.labels = ["0.5";"1.0";"1.5";"2.0";"2.5";"3.0";"3.5";"4.0";"4.5"]
data_bounds = [-1,0.5;2,4.5]
clip_box = [-1,0.5,3,4]
|
L'échelle des
abscisses a été étendue de [0, 1] à [-0.5,
2].
The scale of abscissa is extended
from [0, 1] to [-0.5, 2].
L'échelle des
ordonnées a été étendue de [0, 1] à
[0.5, 4.5].
The scale of ordinates is extended
from [0, 1] to [0.5, 4.5].

x_ticks.locations
= [-2;-1.5;-1;-0.5;0;0.5;1;1.5;2;2.5;3]
y_ticks.locations = [0;1;2;3;4;5;6;7;8;9]
x_ticks.labels = matrix 11x1
y_ticks.labels = ["0";"1";"2";"3";"4";"5";"6";"7";"8";"9"]
data_bounds = [-2,0;3,9]
clip_box = [-2,0,5,9]
|
L'échelle des
abscisses a été étendue de [-0.5, 2] à [-2,
3].
The scale of abscissa is extended
from [-0.5, 2] to [-2, 3].
L'échelle des
ordonnées a été étendue de [0.5,4.5]
à [0, 9].
The scale of ordinates is extended
from [0.5, 4.25] to [0, 9].
4.39.30
L'option strf (c=0) / Option strf (c=0)
|
L'option strf (c=0) inhibe le tracé
des axes et du cadre. La valeur par défaut est c=1.
The option strf (c=0) inhibits the drawing of
axes and box.
The default value is c=1.
disp
("4.39.30A");
hf = scf (1);
hf.figure_name = "4.39.30A";
ha = hf.children;
x = [0:0.05:1];
plot2d (x,x**2, strf="080" );
ha,
xpause (5000000);
delete (hf);
|

axes_visible
= ["off","off","off"]
box = "off"
|
4.39.31
L'option strf (c=1) / Option strf (c=1)
|
L'option strf (c=1) effectue le tracé
des axes (abscisses en bas, ordonnées à gauche) et du
cadre. La valeur par défaut est c=1.
The option strf (c=1) preforms the drawing of
axes (absissa at bottom, ordinates at left) and box.
The default value is c=1.
disp
("4.39.31A");
hf = scf (1);
hf.figure_name = "4.39.31A";
ha = hf.children;
x = [0:0.05:1];
plot2d (x,x**2, strf="081" );
ha,
xpause (5000000);
delete (hf);
|

4.39.32
L'option strf (c=2) / Option strf (c=2)
|
L'option strf (c=2) effectue le tracé du cadre et inhibe celui des axes. La valeur
par défaut est c=1.
The option strf (c=2) preforms the drawing of the
box and inhibits the drawing of axes.
The default value is c=1.
disp
("4.39.32A");
hf = scf (1);
hf.figure_name = "4.39.32A";
ha = hf.children;
x = [0:0.05:1];
plot2d (x,x**2, strf="082" );
ha,
xpause (5000000);
delete (hf);
|

axes_visible
= ["off","off","off"]
box = "on"
|
4.39.33
L'option strf (c=3) / Option strf (c=3)
|
L'option strf (c=3) effectue le tracé des axes avec l'axe des ordonnées
à droite et inhibe
celui du cadre. La valeur par défaut est c=1.
The option strf (c=3) preforms the drawing drawing
of axes with the axis of ordinates at the
right and inhibits thedrawing of the box .
The default value is c=1.
disp
("4.39.33A");
hf = scf (1);
hf.figure_name = "4.39.33A";
ha = hf.children;
x = [0:0.05:1];
plot2d (x,x**2, strf="083" );
ha,
xpause (5000000);
delete (hf);
|

x_location
= "bottom"
y_location = "right"
box = "off"
|
4.39.34
L'option strf (c=4) / Option strf (c=4)
|
L'option strf (c=4) effectue le tracé des axes et du cadre. La valeur par défaut
est c=1.
The option strf (c=4) preforms the drawing
of axes and
of box .
The default value is c=1.
Identique à c=1 ?
Identical to c=1 ?
disp
("4.39.34A");
hf = scf (1);
hf.figure_name = "4.39.34A";
ha = hf.children;
x = [0:0.05:1];
plot2d (x,x**2, strf="084" );
ha,
xpause (5000000);
delete (hf);
|

4.39.35
L'option strf (c=5) / Option strf (c=5)
|
L'option strf (c=5) effectue le tracé des axes à y=0 pour l'axes des abscisses
et à x=0 pour l'axes des ordonnées et inhibe le tracé du cadre (mais Axes.box = "on" ???). La valeur par
défaut est c=1.
The option strf (c=5) performs the drawing of
axes at y=0 for the axis of abscissa and at
x=0 for the axis of ordinates and
inhibit the drawing of box (but Axes.box
= "on" ???).
The default value is c=1.
disp
("4.39.35A");
hf = scf (1);
hf.figure_name = "4.39.35A";
ha = hf.children;
x = [-1:0.05:1];
plot2d (x,0.5-x**2, strf="085" );
ha,
xpause (5000000);
delete (hf);
|

x_location
= "middle"
y_location = "middle"
box = "on"
|
4.39.40
L'option frameflag / Option frameflag
|
L'option frameflag controle les bornes du tracé et correspond exactement au second caractère b du l'option strf "abc". frameflag prend les
valeurs 0 à 8
The option frameflag controls
the bounds of
drawing and exactly corresponds to the second.character
b of the option strf "abc". frameflag takes
the values 0 to 8.
disp
("4.39.40A");
hf = scf (1);
hf.figure_name = "4.39.40A";
ha = hf.children;
x = [-2.45:0.05:2.23];
plot2d (x,x**2, frameflag=6 );
ha,
xpause (5000000);
delete (hf);
|

data_bounds
= [-2.45,0;2.2,6.0025]
clip_box = [-2.5,0,5,7]
|
4.39.41
L'option axesflag / Option axesflag
|
L'option axesflag controle le tracé des axes et correspond exactement au
troisième caractère
c du l'option strf "abc". axesflag prend les
valeurs 0 à 5
The option axesflag controls
the drawing of axes and exactly corresponds to the third.character
c
of
the option strf "abc". axesflag takes
the values 0 to 5.
disp
("4.39.41A");
hf = scf (1);
hf.figure_name = "4.39.41A";
ha = hf.children;
x = [-1:0.05:1];
plot2d (x,x**2, axesflag=5 );
ha,
xpause (5000000);
delete (hf);
|

x_location
= "middle"
y_location = "middle"
box = "on"
|
4.39.42
L'option rect / Option rect
|
L'option rect définit le rectangle
définissant les limites du tracé. C'est un vecteur
à 4 éléments [xinf, yinf, xsup, ysup].
The option rect defines the rectangle defining
the limits of drawing. It is a vector with 4 elements [xinf, yinf,
xsup, ysup]
L'option rect n'a de sens que si le second
caractère b de l'option strf
"abc"
ou frameflag est 1, 3, 5 ou 7.
The option rect has only a sense when the
second character b of option strf
"abc"
or framaflag is 1, 3, 5 or 7.
Si l'option b de strf "abc"
ou frameflag n'est pas
indiqué, elle est mise à 7 par défaut.
If the option strf "abc"
or framaflag is not given, it
is considered as 7 by default.
disp
("4.39.42A");
hf = scf (1);
hf.figure_name = "4.39.42A";
rectval = [0, 0, 10, 10];
x = [-1:0.05:15];
plot2d (x,x**2, frameflag=1, rect=rectval );
xpause (5000000);
delete (hf);
|

La courbe est tracée entre -1 et 15, mais seule la partie entre
0 et 10 est figurée, avec y entre 0 et 10.
The
curve is drawn between -1 and 15, but only the part between 0 and 10 is
figured, with y between 0 and 10.
disp
("4.39.42B");
hf = scf (1);
hf.figure_name = "4.39.42B1";
rectval = [0, 0, 1, 1];
x = [0:0.05:1];
plot2d (x,x**2, rect=rectval );
xpause (5000000);
hf.figure_name = "4.39.42B2";
rectval = [0, 0, 3, 10];
x = [0:0.05:5];
plot2d (x,0.5+x**2, rect=rectval );
xpause (5000000);
delete (hf);
|


L'option rect est implémentée
dans les procédures plot2d,
Matplot.
The option rect is implemented with the
procedures plot2d, Matplot.
4.39.43
L'option logflag / Option logflag
|
L'option logflag définit la nature de
l'échelle de chaque axe. C'est une chaine de 3 caractères
"xyz" dont chacun des caractères x, y ou z peut être "n"
(échelle normale) ou "l" (échelle logarithmique).
The option logflag defines the nature of the
scale for each axis. It is a 3 character string "xyz" where each
character x, y or z can be "n" (normal scale) or "l" (logarithmic
scale).
disp
("4.39.43A");
hf = scf (1);
hf.figure_name = "4.39.43A";
x = [0:0.05:20];
plot2d (x,x**2, logflag = "nl");
xpause (5000000);
delete (hf);
|

4.39.44
L'option nax / Option nax
|
L'option nax définit le type de
graduation selon chacun des axes, sous forme d'un vecteur d'entiers
[sgx, gx, sgy, gy]. La valeur par défaut est [1, 11, 1, 11].
The option nax
defines the kind of graduation alon aeach axis under the form of
a vector of integers [sgx, gx, sgy, gy]. The default value is [1, 11,
1, 11].
gx (resp gy) est le nombre de graduations le long de l'axe des x (resp
des y).
gx (resp gy) is the number of
graduations along the x (resp y) axis.
sgx (resp sgy) est le nombre de sous-graduations entre deux graduations
le long de l'axe des x (resp des y).
sgx (resp sgy) is the number of
subgraduations bteween two graduations along the x (resp y) axis.
disp
("4.39.44A");
hf = scf (1);
hf.figure_name = "4.39.44A";
x = [0:0.05:1];
naxval = [5,11,1,21];
plot2d (x,x**2, nax=naxval);
xpause (5000000);
delete (hf);
|

auto_ticks
= ["off","off","on"]
sub_ticks = [5,1]
|
L'option nax est implémentée
dans les procédures plot2d,
Matplot.
The option nax is implemented with the
procedures plot2d, Matplot.
4.39.45
L'option style / Option style
|
L'option style définit
le type de tracé.
The option style
defines the kind drawing
Si style est positif, la
ligne est tracée dans la couleur de rang style de la palette Figure.color_map.
If style
is positive, the line is drawn in the color of rank style in the palette Figure.color_map.
Si style est négatif
ou nul, la courbe n'est pas tracée et les
extrémités de chaque segment qui la compose sont
remplacés par des marques de rang -style (valeurs dans 0.9).
If style
is negative or null, the curve is not drawn and the ends of each
segment which compound it are replaced by marks of rank -style (values in 0.9).
disp
("4.39.45A");
hf = scf (1);
hf.figure_name = "4.39.45A";
x = [0:0.05:1];
plot2d (x,x**2, style = 2);
ha= hf.children;
ha,
xpause (5000000);
delete (hf);
|

disp
("4.39.45B");
hf = scf (1);
hf.figure_name = "4.39.45B";
x = [0:0.05:1];
plot2d (x,x**2, style = -2);
ha= hf.children;
ha,
xpause (5000000);
delete (hf);
|
