![]() BIOSCILAB
|
SCILAB 4.0 PAS-A-PAS SCILAB 4.0 STEP-BY-STEP Jacques-Deric Rouault CNRS / INRIA |
Volume
4
LE GRAPHISME Volume 4 GRAPHISM |
4.21 LE
HANDLE FIGURE 4.21 THE HANDLE FIGURE |
Version 4.0.19 du 23 Décembre 2005 / Version 4.0.19, December 23th 2005 |
Scilab 3.1 - Scilab 4.0 / Windows - Linux |
ALLER A
L'INDEX GENERAL / GO TO
THE GENERAL INDEX |
ALLER A LA TABLE GENERALE / GO TO THE GENERAL TABLE |
4.22 GESTION DES REPERES / MANAGING THE SYSTEMS OF AXES |
4.21.01
Présentation / Presentation |
Figure(Type handle) |
4.21.02
Liste des champs / Fields list |
// Program Spas42102A
// Designed for Scilab 3.1 & 4.0 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.21.02A"); hf = scf (1), delete (hf); |
// Program Spas42102B
// Designed for Scilab 3.1 & 4.0 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.21.02B"); hf = scf (1); hf.type, delete (hf); |
4.21.03
Parent et enfants / Parent and children |
4.21.04
Déclaration / Declaration |
scf |
// Program Spas42104A
// Designed for Scilab 3.1 & 4.0 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.21.04A"); hf = scf (), xpause (5000000); delete (hf); |
// Program Spas42104B
// Designed for Scilab 3.1 & 4.0 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.21.04B"); hf = scf (9), xpause (5000000); delete (hf); |
// Program Spas42104C
// Designed for Scilab 3.1 & 4.0 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.21.04C"); lines (0); plot2d (); hg = gce (), ha = hg.parent, hf = ha.parent, xpause (5000000); delete (hf); |
4.21.05
La figure par défaut / The default figure |
Default figure Figure par défaut gdf get ("default_figure") sdf set ("default_figure") xset ("default") |
// Program Spas42105A
// Designed for Scilab 3.1 & 4.0 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.21.05A"); hfd = scf (), xpause (5000000); delete (hfd); |
// Program Spas42105B
// Designed for Scilab 3.1 & 4.0 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.21.05B"); sdf (); hfd = gdf (), |
// Program Spas42105C
// Designed for Scilab 3.1 & 4.0 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.21.05C"); xset ("default"); hfd = scf (), |
4.21.10
figure_style |
customized (figure_style handle
figure) figure_style (handle figure) new (figure_style handle figure) old (figure_style handle figure) |
// Program Spas42110A
// Designed for Scilab 3.1 & 4.0 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.21.10A"); hf = scf (1); disp (hf.figure_style); delete (hf); |
4.21.11
figure_position |
figure_position
(Figure) wpos (xget, xset) xget ("wpos") xset ("wpos") |
// Program Spas42111A
// Designed for Scilab 3.1 & 4.0 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.21.11A"); hf = scf (1); hf.figure_position = [0,0]; hf.figure_name = "4.21.11A"; xpause (5000000); delete (hf); |
// Program Spas42111B
// Designed for Scilab 3.1 & 4.0 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.21.11B"); hf = scf (1); hf.figure_name = "4.21.11B"; hf.figure_position = [10,20]; pos = xget ("wpos"), delete (hf); |
// Program Spas42111C
// Designed for Scilab 3.1 & 4.0 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.21.11C"); hf = scf (1); hf.figure_name = "4.21.11C"; hf.figure_position, xset ("wpos",100,150); hf.figure_position, delete (hf); |
4.21.12
figure_size |
figure_size
(Figure) wdim (xget, xset) xget ("wdim") xset ("wdim") |
// Program Spas42112A
// Designed for Scilab 3.1 & 4.0 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.21.12A"); hf = scf (1); hf.figure_size = [500,100]; hf.figure_name = "4.21.12A"; xpause (5000000); delete (hf); |
// Program Spas42112B
// Designed for Scilab 3.1 & 4.0 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.21.12B"); hf = scf (1); hf.figure_size = [10,10]; hf.figure_size, hf.figure_name = "4.21.12B"; |
// Program Spas42112C
// Designed for Scilab 3.1 & 4.0 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.21.12C"); hf = scf (1); hf.figure_name = "4.21.12C"; hf.figure_size = [500,300]; v = xget ("wdim"), delete (hf); |
// Program Spas42112D
// Designed for Scilab 3.1 & 4.0 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.21.12D"); hf = scf (1); hf.figure_name = "4.21.12D"; hf.figure_size, xset ("wdim",400,300); hf.figure_size, delete (hf); |
4.21.13
axes_size |
axes_size
(Figure) |
// Program Spas42113A
// Designed for Scilab 3.1 & 4.0 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.21.13A"); hf = scf (); hf.auto_resize = "off"; hf.axes_size = [800,900]; hf.figure_name = "4.21.13A"; ha = gca (); ha.axes_visible = "on"; |
// Program Spas42113B
// Designed for Scilab 3.1 & 4.0 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.21.13B"); hf = scf (1); hf.auto_resize = "off"; hf.axes_size = [400,300]; hf.figure_name = "4.21.13B"; ha = gca (); ha.axes_visible = "on"; |
4.21.14
auto_resize |
auto_resize
(Figure) wresize (xget, xset) xget ("wresize") xset ("wresize") |
// Program Spas42114A
// Designed for Scilab 3.1 & 4.0 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.21.14A"); hf1 = scf (1); hf1.figure_position = [0,0]; hf1.figure_size = [400,300]; hf1.auto_resize = "off"; hf1.axes_size = [600,600]; hf1.figure_name = "4.21.14A1"; ha1 = gca (); ha1.axes_visible = "on"; hf2 = scf (2); hf2.figure_position = [200,200]; hf2.figure_size = [400,300]; hf2.auto_resize = "on"; hf2.axes_size = [600,600]; hf2.figure_name = "4.21.14A2"; ha2 = gca (); ha2.axes_visible = "on"; |
// Program Spas42114B
// Designed for Scilab 3.1 & 4.0 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.21.14B"); hf = scf (1); hf.figure_name = "4.21.14B"; hf.auto_resize = "on"; v = xget ("wresize"), hf.auto_resize = "off"; v = xget ("wresize"), |
// Program Spas42114C
// Designed for Scilab 3.1 & 4.0 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.21.14C"); hf = scf (1); hf.figure_name = "4.21.14C"; hf.auto_resize = "off"; hf.auto_resize, xset ("wresize",1); hf.auto_resize, |
4.21.15
figure_name |
figure_name
(Figure) Scilab Graphic (figure_name) xname |
// Program Spas42115A
// Designed for Scilab 3.1 & 4.0 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.21.15A"); hf = scf (); hf.figure_name = "4.21.15A"; |
// Program Spas42115B
// Designed for Scilab 3.1 & 4.0 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.21.15B"); hf = scf (); hf.figure_name = "4.21.15B1"; xpause (5000000); xname ("4.21.15B2"); |
// Program Spas42115C
// Designed for Scilab 3.1 & 4.0 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.21.15C"); hf = scf (); hf.figure_name = "4.21.15C1"; xname ("4.21.15C2"); hf.figure_name, |
4.21.16
figure_id |
figure_id
(Figure) window (xget, xset) xget ("window") xset ("window") |
// Program Spas42116A
// Designed for Scilab 3.1 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.21.16A"); hf = scf (1); hf.figure_id = 1; |
// Program Spas42116B
// Designed for Scilab 3.1 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.21.16B"); hf = scf (1); hf.figure_id = 2; |
// Program Spas42116C
// Designed for Scilab 4.0 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.21.16C"); hf = scf (3); hf.figure_name = "Figure = %d"; |
// Program Spas42116D
// Designed for Scilab 3.1 & 4.0 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.21.16D"); hf = scf (4); v = xget ("window"), delete (hf); |
// Program Spas42116E
// Designed for Scilab 4.0 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.21.16E"); hf1 = scf (1); hf1.figure_name = "42116E / 1"; hf1.figure_position = [0,0]; hf2 = scf (2); hf2.figure_name = "42116E / 2"; hf2.figure_position = [100,100]; xpause (5000000); xset ("window",1), xfrect (0, 1, 1, 1); hr1 = gce (); hr1.background = 5; hr1.fill_mode = "on"; xpause (5000000); xset ("window",3), xpause (5000000); ha3 = gce (); hf3 = ha3.parent; delete (hf1); delete (hf2); delete (hf3); |
4.21.17
color_map |
color_map
(Figure) colormap (xget, xset) xget ("colormap") xset ("colormap") |
// Program Spas42117A
// Designed for Scilab 3.1 & 4.0 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.21.17A"); hf = scf (); hf.background = 15; hf.figure_name = "4.21.17A1"; xpause (5000000); hf.color_map = hotcolormap (50); hf.figure_name = "4.21.17A2"; |
// Program Spas42117B
// Designed for Scilab 3.1 & 4.0 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.21.17B"); lines (0); hf = scf (1); v = xget ("colormap"), delete (hf); |
// Program Spas42117C
// Designed for Scilab 3.1 & 4.0 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.21.17C"); hf = scf (1); hf.figure_name = "4.21.17C"; cmap = hotcolormap (50); xset ("colormap", cmap), hf.background = 40; |
4.21.18
background |
background
(Figure) background (xget, xset) xget ("background") xset ("background") |
// Program Spas42118A
// Designed for Scilab 3.1 & 4.0 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.21.18A"); hf = scf (); hf.background = 29; hf.figure_name = "4.21.18A"; |
// Program Spas42118B
// Designed for Scilab 3.1 & 4.0 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.21.18B"); hf = scf (); hf.background = 29; v = xget ("background"), delete (hf); |
// Program Spas42118C
// Designed for Scilab 3.1 & 4.0 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.21.18C"); hf = scf (); hf.figure_name = "4.21.18C1"; hf.background = 2; xpause (5000000); hf.figure_name = "4.21.18C2"; xset ("background",31); hf.background, |
4.21.19
immediate_drawing |
drawlater drawnow immediate_drawing (Figure) |
// Program Spas42119A
// Designed for Scilab 3.1 & 4.0 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.21.19A"); hf = scf (); hf.figure_name = "4.21.19A1"; hf.immediate_drawing = "off"; hf.background = 15; hf.figure_name = "4.21.19A2"; xpause (5000000); hf.immediate_drawing = "on"; hf.figure_name = "4.21.19A3"; |
// Program Spas42119B
// Designed for Scilab 3.1 & 4.0 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.21.19B"); hf = scf (); hf.immediate_drawing, drawlater; hf.immediate_drawing, drawnow; hf.immediate_drawing, delete (hf); |
4.21.20
pixmap |
pixmap
(Figure) pixmap (xget, xset) show_pixmap xget ("pixmap") xset ("pixmap") |
// Program Spas42120A
// Designed for Scilab 3.1 & 4.0 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.21.20A"); hf = scf (1); hf.pixmap = "on"; hf.figure_name = "4.21.20A"; hf.background = 10; xpause (5000000); show_pixmap (); |
// Program Spas42120B
// Designed for Scilab 3.1 & 4.0 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.21.20B"); hf = scf (1); hf.figure_name = "4.21.20B"; hf.pixmap = "on"; v = xget ("pixmap"), hf.pixmap = "off"; v = xget ("pixmap"), |
// Program Spas42120C
// Designed for Scilab 3.1 & 4.0 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.21.20C"); hf = scf (1); hf.figure_name = "4.21.20C"; hf.pixmap = "off"; hf.pixmap, xset ("pixmap",1); hf.pixmap, |
4.21.21
pixel_drawing_mode |
Opérateur/Operator | Résultat/Result |
Résultat/Result | |
0 |
clear |
0 |
Noir / Black
effacer/errase |
1 |
and |
A and B |
|
2 |
andReverse |
not A and B |
|
3 |
copy |
B |
affichage (par défaut) |
4 |
andInverted |
A and not B |
|
5 |
noop |
A |
inchangé, unchanged |
6 |
xor |
A xor B |
animations |
7 |
or |
A or B |
|
8 |
nor |
not A and not B |
|
9 |
equiv |
A xor not B |
|
10 |
invert |
not A |
|
11 |
orReverse |
not A or B |
|
12 |
copyInverted |
not B |
affichage inversé, inverted display |
13 |
orInverted |
A or not B |
|
14 |
nand |
not A or not B |
|
15 |
set |
1 |
Blanc / White |
// Program Spas42121A
// Designed for Scilab 4.0 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.21.21A"); hf = scf (1); hf.figure_name = "4.21.21A"; xfrect (0.1, 0.9, 0.8, 0.8); hr1 = gce (); hr1.background = 5; hr1.fill_mode = "on"; xpause (5000000); hf.pixel_drawing_mode = "invert"; |
// Program Spas42121B
// Designed for Scilab 3.1 & 4.0 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.21.21B"); hf = scf (); hf.pixel_drawing_mode = "copyInverted"; v = xget ("alufunction"), delete (hf); |
// Program Spas42121C
// Designed for Scilab 3.1 & 4.0 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.21.21C"); hf = scf (); xset ("alufunction",13), hf.pixel_drawing_mode, delete (hf); |
4.21.30
user_data |
user_data
(Figure) |
// Program Spas42130A
// Designed for Scilab 4.0 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.21.30A"); hf = scf (1); hf.figure_name = "4.21.30A1"; xpause (5000000); hf.figure_name = "4.21.30A2"; hf.user_data = hf.figure_position ; hf.figure_position = [200,250]; hf.user_data, xpause (5000000); hf.figure_name = "4.21.30A3"; hf.figure_position = hf.user_data ; xpause (5000000); delete (hf); |
4.21.50
visible |
visible
(Figure) |
// Program Spas42150A
// Designed for Scilab 3.1 & 4.0 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.21.50A"); hf = scf (1); hf.figure_name = "4.21.50A1"; hf.background = 32; ha = hf.children; ha.axes_visible = "on"; ha.box = "on"; xpause (5000000); hf.figure_name = "4.21.50A2"; hf.visible = "off"; xpause (5000000); hf.figure_name = "4.21.50A3"; hf.visible = "on"; xpause (5000000); delete (hf); |
4.21.51
rotation_style |
multiple
(rotation_style) rotation_style (Figure) unary (rotation_style) |
disp ("4.21.51A");
hf = scf (1); hf.figure_name = "4.21.51A"; hf.background = 32; hf.rotation_style = "multiple"; subplot (1, 2, 1); xfrect (0, 1, 1, 1); hr1 = gce (); hr1.background = 2; hr1.fill_mode = "on"; ha1 = hr1.parent, subplot (1, 2, 2); xfrect (0, 1, 1, 1); hr2 = gce (); hr2.background = 3; hr2.fill_mode = "on"; ha1.rotation_angles = [60,200]; |
// Program Spas42151B
// Designed for Scilab 4.0 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.21.51B"); hf = scf (1); hf.figure_name = "4.21.51B"; hf.background = 32; hf.rotation_style = "unary"; subplot (1, 2, 1); xfrect (0, 1, 1, 1); hr1 = gce (); hr1.background = 2; hr1.fill_mode = "on"; ha1 = hr1.parent, subplot (1, 2, 2); xfrect (0, 1, 1, 1); hr2 = gce (); hr2.background = 3; hr2.fill_mode = "on"; ha1.rotation_angles = [60,200]; |
4.21.99
Zones d'ombre /
Shadowy areas |
ALLER A
L'INDEX GENERAL / GO TO
THE GENERAL INDEX |
ALLER A LA TABLE GENERALE / GO TO THE GENERAL TABLE |
4.22 GESTION DES REPERES / MANAGING THE SYSTEMS OF AXES |