File: plot_graph.man

package info (click to toggle)
scilab 2.6-4
  • links: PTS
  • area: non-free
  • in suites: woody
  • size: 54,632 kB
  • ctags: 40,267
  • sloc: ansic: 267,851; fortran: 166,549; sh: 10,005; makefile: 4,119; tcl: 1,070; cpp: 233; csh: 143; asm: 135; perl: 130; java: 39
file content (84 lines) | stat: -rw-r--r-- 2,260 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
.TH plot_graph 1 "September 1996" "Scilab Group" "Scilab function"
.so ../sci.an
.SH NAME
plot_graph - general plot of a graph 
.SH CALLING SEQUENCE
.nf
plot_graph(g,[rep,rep1])
.fi
.SH PARAMETERS
.TP 3
g
: graph list
.TP 4
rep
: row vector of 13 values for the parameters of the plot
.TP 5
rep1
: row vector of 4 values defining the plotting rectangle
.SH DESCRIPTION
\fVplot_graph\fR plots graph \fVg\fR in a Scilab graphical window.
The optional arguments \fVrep\fR and \fVrep1\fR define the parameters
of the plot. If there are not given, a dialog box for the definition
of these parameters is opened.

\fVrep\fR must be a row vector with 13 integer numbers which must be 1 or 2.
The meaning of the values of \fVrep\fR are:

Frame definition: 1 = Automatic
                  2 = Given (see below)

Plotting arrows: 1 = yes, 2 = no

Plotting sink and source nodes: 1 = yes, 2 = no

Plotting node names: 1 = yes, 2 = no

Plotting node labels: 1 = yes, 2 = no

Plotting arc names : 1 = yes, 2 = no

Plotting arc labels: 1 = yes, 2 = no

Plotting node demand: 1 = yes, 2 = no

Plotting edge length: 1 = yes, 2 = no

Plotting edge cost: 1 = yes, 2 = no

Plotting edge min cap: 1 = yes, 2 = no

Plotting edge max cap: 1 = yes, 2 = no

Plotting edge weight: 1 = yes, 2 = no

If \fVrep(1)\fR is 2, the frame definition must be given by
\fVrep1\fR. Otherwise, \fVrep1\fRcan be omitted.
\fVrep1\fR must be a row vector \fV[orx,ory,w,h]\fR giving respectively the coordinates of the upper-left point, the width and the height of the
plotting rectangle.
.SH EXAMPLE
.nf
// simple graph with different choices for the plot
ta=[2 2 1 1 2 4 3 3 4];
he=[2 2 3 2 3 2 1 2 1];
g=make_graph('foo',1,4,ta,he);
g('node_type')=[1 1 1 2];g('node_name')=string([1:4]);
g('node_x')=[73 737 381 391]; g('node_y')=[283 337 458 142];
g('node_color')=[3 3 3 11];
g('node_diam')=[30 30 30 60];
g('edge_color')=[10 0 2 6 11 11 0 0 11];
rep=[2 2 1 1 2 2 2 2 2 2 2 2 2];
rep1=[100 -400 650 300];
xbasc(); plot_graph(g,rep,rep1);
rep=[2 1 1 1 2 2 2 2 2 2 2 2 2];
x_message('plot the graph with different parameters');
xbasc(); plot_graph(g,rep,rep1);
// plotting using dialogs
xbasc(); plot_graph(g);
xset("thickness",4);
xbasc();
plot_graph(g);
xset('default');
.fi
.SH SEE ALSO
show_graph