File: xset.cat

package info (click to toggle)
scilab 2.4-1
  • links: PTS
  • area: non-free
  • in suites: potato, slink
  • size: 55,196 kB
  • ctags: 38,019
  • sloc: ansic: 231,970; fortran: 148,976; tcl: 7,099; makefile: 4,585; sh: 2,978; csh: 154; cpp: 101; asm: 39; sed: 5
file content (157 lines) | stat: -rw-r--r-- 5,350 bytes parent folder | download
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157

xset(2)                        Scilab Function                        xset(2)
NAME
  xset - set values of the graphic context

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

PARAMETERS

  choice-name
            : string

  x1,...,x5      : depending on choice-name

  xset("alufunction",number)
                 : used to set the logical function for drawing, it works
                 only under X11.  The logical function used is set by x1. The
                 default value is 3.

                  0        : function  " 0 ",

                  1        : function " src AND dst "

                  2        : function " src AND NOT dst "

                  3        : function " src ",

                  4        : function " NOT src AND dst "

                  5        : function " dst ",

                  6        : function " src XOR dst ",

                  7        : function " src OR dst ",

                  8        : function " NOT src AND NOT dst ",

                  9        : function " NOT src XOR dst ",

                 10        : function " NOT dst ",

                 11        : function " src OR NOT dst ",

                 12        : function " NOT src ",

                 13        : function " NOT src OR dst ",

                 14        : function " NOT src OR NOT dst ",

                 15        : function " 1 ";

  xset("auto clear","on"|"off")
                 : to switch on or off the auto clear mode for graphics. When
                 the auto clear mode is on an xbasc() operation is performed
                 before each high level graphic function.

  xset("background",color)
                 : to fix the background color of the current graphic window.

  xset("clipping",x,y,w,h)
                 : set the clipping zone to the rectangle (x,y,w,h) (Upper-
                 Left point Width Height).  This function uses the current
                 scale

  xset("colormap",cmap)
                 : 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.

  xset("default")
                 : reset the graphic context to default values

  xset("dashes",i)
                 : set the dash style to style i (0 for solid line)

  xset("font",fontid,fontsize)
                 : to fix the current font and its current size.

  xset("foreground",color)
                 : to fix the foreground color of the current graphic window.

  xset("fpf",string)
                 : to fix the floating point format for number display in
                 contour functions. string is a string giving the format in C
                 format syntax (for example string="%3f"), use string='' to
                 switch back to default format.

  xset("hidden3d",colorid)
                 : set the color number for ``hidden'' faces in plot3d.

  xset("line mode",type);
                 This function is used to fix the line drawing mode. Absolute
                 mode is fixed withtype=1 an relative mode with type=0.
                 (Warning : the mode type=0 is bugged )

  xset("mark",markid,marksize)
                 : is used to set the current mark and current mark size.

  xset("pattern",value)
                 : to 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 whi-
                 teid can be obtained with xget("white").

  xset("thickness",value)
                 : fixes the thickness of lines in pixel  ( 0 and 1 have the
                 same meaning : 1 pixel thick)

  xset("wdim",width,height)
                 : fixes the width and height of the current graphic window.
                 This option is not used by the postscript driver.

  xset("wpos",x,y);
                 : fixes the position of the upper left point of the graphic
                 window.

  xset("window",window-number)
                 Set the current window to the window window-number and
                 creates the window if it doesn't exists.

  xset("use color",flag)
                 if flag=1 then xset("pattern",.) or xset("dashes",.) 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.

  xset("pixmap",flag)

                 if
                   flag=0 the graphics are directly displayed on the screen

                 if
                   flag=1 the graphics are done on a Pixmap and are send to
                   the graphic window with the command  xset("wshow"). The
                   Pixmap is cleared with the  command xset("wwpc") or with
                   the usual command xbasc().

  xset("wshow")  : see xset("pixmap",1) above

  xset("wwpc")   : see xset("pixmap",1) above

DESCRIPTION
  xset is used to set values of the graphic context. When called no argu-
  ments, a choice menu is created showing the current values and changes can
  be performed through toggle buttons

SEE ALSO
  xget, colormap

REFERENCE
  X11 documentation

AUTHOR
  J.Ph.C.