1
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
2
<!DOCTYPE MAN SYSTEM "../../manrev.dtd">
4
<LANGUAGE>eng</LANGUAGE>
5
<TITLE>graphics</TITLE>
6
<TYPE>Scilab Function</TYPE>
7
<DATE>April 1993</DATE>
8
<SHORT_DESCRIPTION name="Graphics"> graphics library overview</SHORT_DESCRIPTION>
9
<SECTION label="2d plotting">
12
<SP>: plot a curve</SP>
14
<ITEM label="plot2d2">
15
<SP>: plot a curve as step function</SP>
17
<ITEM label="plot2d3">
18
<SP>: plot a curve with vertical bars</SP>
20
<ITEM label="plot2d4">
21
<SP>: plot a curve with arrows</SP>
23
<ITEM label="fplot2d">
24
<SP>: plot a curve defined by a function</SP>
27
<SP>: 2D vector field</SP>
30
<SP>: 2D vector field with colored arrows</SP>
33
<SP>: direction field of a 2D first order ODE</SP>
35
<ITEM label="contour2d">
36
<SP>: level curves of a surface on a 2D plot</SP>
38
<ITEM label="fcontour2d">
39
<SP>: level curves of a surface defined by a function on a 2D plot</SP>
41
<ITEM label="grayplot">
42
<SP>: 2D plot of a surface using colors</SP>
44
<ITEM label="fgrayplot">
45
<SP>: 2D plot of a surface defined by a function using colors</SP>
47
<ITEM label="Sgrayplot">
48
<SP>: smooth 2D plot of a surface using colors</SP>
50
<ITEM label="Sfgrayplot">
51
<SP>: smooth 2D plot of a surface defined by a function using colors</SP>
54
<SP>: add a grid on a 2D plot</SP>
57
<SP>: add vertical error bars on a 2D plot</SP>
59
<ITEM label="histplot">
60
<SP>: plot a histogram</SP>
62
<ITEM label="Matplot">
63
<SP>: 2D plot of a matrix using colors</SP>
67
<SECTION label="3d plotting">
70
<SP>: plot a surface</SP>
72
<ITEM label="plot3d1">
73
<SP>: plot a surface with gray or color level</SP>
75
<ITEM label="fplot3d">
76
<SP>: plot a surface defined by a function</SP>
78
<ITEM label="fplot3d1">
79
<SP>: plot a surface defined by a function with gray or color level</SP>
81
<ITEM label="param3d">
82
<SP>: plot one curve</SP>
84
<ITEM label="param3d1">
85
<SP>: plots curves</SP>
87
<ITEM label="contour">
88
<SP>: level curves on a 3D surface</SP>
90
<ITEM label="fcontour">
91
<SP>: level curves on a 3D surface defined by a function</SP>
94
<SP>: 3D representation of a histogram</SP>
96
<ITEM label="genfac3d">
97
<SP>: compute facets of a 3D surface</SP>
99
<ITEM label="eval3dp">
100
<SP>: compute facets of a 3D surface</SP>
102
<ITEM label="geom3d">
103
<SP>: projection from 3D on 2D after a 3D plot</SP>
107
<SECTION label="Line and polygon plotting">
110
<SP>: draw a polyline or a polygon</SP>
112
<ITEM label="xpolys">
113
<SP>: draw a set of polylines or polygons</SP>
115
<ITEM label="xrpoly">
116
<SP>: draw a regular polygon</SP>
119
<SP>: draw unconnected segments</SP>
121
<ITEM label="xfpoly">
122
<SP>: fill a polygon</SP>
124
<ITEM label="xfpolys">
125
<SP>: fill a set of polygons</SP>
129
<SECTION label="Rectangle plotting">
132
<SP>: draw a rectangle</SP>
134
<ITEM label="xfrect">
135
<SP>: fill a rectangle</SP>
137
<ITEM label="xrects">
138
<SP>: draw or fill a set of rectangles</SP>
142
<SECTION label="Arc plotting">
145
<SP>: draw a part of an ellipse</SP>
148
<SP>: draw parts of a set of ellipses</SP>
151
<SP>: fill a part of an ellipse</SP>
153
<ITEM label="xfarcs">
154
<SP>: fill parts of a set of ellipses</SP>
158
<SECTION label="Arrow plotting">
160
<ITEM label="xarrows">
161
<SP>: draw a set of arrows</SP>
165
<SECTION label="Strings">
167
<ITEM label="xstring">
168
<SP>: draw strings</SP>
170
<ITEM label="xstringl">
171
<SP>: compute a box which surrounds strings</SP>
173
<ITEM label="xstringb">
174
<SP>: draw strings into a box</SP>
176
<ITEM label="xtitle">
177
<SP>: add titles on a graphics window</SP>
179
<ITEM label="titlepage">
180
<SP>: add a title in the middle of a graphics window</SP>
183
<SP>: draw an info string in the message subwindow</SP>
187
<SECTION label="Frames and axes">
190
<SP>: draw an axis</SP>
192
<ITEM label="graduate">
193
<SP>: pretty axis graduations</SP>
195
<ITEM label="plotframe">
196
<SP>: plot a frame with scaling and grids</SP>
200
<SECTION label="Coordinates transformations">
202
<ITEM label="isoview">
203
<SP>: set scales for isometric plot (do not change the size of the window)</SP>
205
<ITEM label="square">
206
<SP>: set scales for isometric plot (change the size of the window)</SP>
208
<ITEM label="scaling">
209
<SP>: affine transformation of a set of points</SP>
211
<ITEM label="rotate">
212
<SP>: rotation of a set of points</SP>
214
<ITEM label="xsetech">
215
<SP>: set the sub-window of a graphics window for plotting</SP>
217
<ITEM label="subplot">
218
<SP>: divide a graphics window into a matrix of sub-windows</SP>
220
<ITEM label="xgetech">
221
<SP>: get the current graphics scale</SP>
223
<ITEM label="xchange">
224
<SP>: transform real to pixel coordinates</SP>
228
<SECTION label="Colors">
230
<ITEM label="colormap">
231
<SP>: using colormaps</SP>
233
<ITEM label="getcolor">
234
<SP>: dialog to select colors in the current colormap</SP>
236
<ITEM label="addcolor">
237
<SP>: add new colors to the current colormap</SP>
239
<ITEM label="graycolormap">
240
<SP>: linear gray colormap</SP>
242
<ITEM label="hotcolormap">
243
<SP>: red to yellow colormap</SP>
247
<SECTION label="Graphics context">
250
<SP>: set values of the graphics context</SP>
253
<SP>: get current values of the graphics context</SP>
255
<ITEM label="xlfont">
256
<SP>: load a font in the graphics context or query loaded font</SP>
258
<ITEM label="getsymbol">
259
<SP>: dialog to select a symbol and its size</SP>
263
<SECTION label="Save and load">
266
<SP>: save graphics into a file</SP>
269
<SP>: load a saved graphics</SP>
271
<ITEM label="xbasimp">
272
<SP>: send graphics to a Postscript printer or in a file</SP>
274
<ITEM label="xs2fig">
275
<SP>: send graphics to a file in Xfig syntax</SP>
277
<ITEM label="xs2gif">
278
<SP>: send graphics to a file in Gif syntax</SP>
280
<ITEM label="xs2ppm">
281
<SP>: send graphics to a file in PPM syntax</SP>
285
<SECTION label="Graphics primitives">
288
<SP>: clear a graphics window and erase the associated recorded graphics</SP>
290
<ITEM label="xclear">
291
<SP>: clear a graphics window</SP>
293
<ITEM label="driver">
294
<SP>: select a graphics driver</SP>
297
<SP>: initialisation of a graphics driver</SP>
300
<SP>: close a graphics session</SP>
303
<SP>: redraw a graphics window</SP>
305
<ITEM label="replot">
306
<SP>: redraw the current graphics window with new boundaries</SP>
308
<ITEM label="xpause">
309
<SP>: suspend Scilab</SP>
311
<ITEM label="xselect">
312
<SP>: raise the current graphics window</SP>
315
<SP>: erase a rectangle</SP>
318
<SP>: set a clipping zone</SP>
321
<SP>: delete a graphics window</SP>
323
<ITEM label="winsid">
324
<SP>: return the list of graphics windows</SP>
327
<SP>: change the name of the current graphics window</SP>
331
<SECTION label="Mouse position">
333
<ITEM label="xclick">
334
<SP>: wait for a mouse click</SP>
336
<ITEM label="locate">
337
<SP>: mouse selection of a set of points</SP>
339
<ITEM label="xgetmouse">
340
<SP>: get the current position of the mouse</SP>
344
<SECTION label="Interactive editor">
346
<ITEM label="edit_curv">
347
<SP>: interactive graphics curve editor</SP>
349
<ITEM label="gr_menu">
350
<SP>: simple interactives graphic editor</SP>
352
<ITEM label="sd2sci">
353
<SP>: gr_menu structure to scilab instruction convertor</SP>
357
<SECTION label="Graphics functions for automatic control">
362
<ITEM label="gainplot">
363
<SP>: magnitude plot</SP>
365
<ITEM label="nyquist">
366
<SP>: Nyquist plot</SP>
368
<ITEM label="m_circle">
369
<SP>: M-circle plot</SP>
372
<SP>: Nichols chart</SP>
375
<SP>: Black's diagram</SP>
378
<SP>: Evans root locus</SP>
381
<SP>: s-plane grid lines</SP>
384
<SP>: pole-zero plot</SP>
387
<SP>: zgrid plot</SP>