1
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
2
<!DOCTYPE MAN SYSTEM "../../manrev.dtd">
4
<LANGUAGE>eng</LANGUAGE>
6
<TYPE>Scilab Function</TYPE>
7
<DATE>April 1993</DATE>
8
<SHORT_DESCRIPTION name="Matplot"> 2D plot of a matrix using colors</SHORT_DESCRIPTION>
10
<CALLING_SEQUENCE_ITEM>Matplot(a,[strf,rect,nax]) </CALLING_SEQUENCE_ITEM>
11
<CALLING_SEQUENCE_ITEM>Matplot(a,<opt_args>) </CALLING_SEQUENCE_ITEM>
16
<PARAM_NAME>a</PARAM_NAME>
18
<SP>: real matrix of size (n1,n2).</SP>
22
<PARAM_NAME><opt_args> </PARAM_NAME>
24
<SP>: This represents a sequence of statements <VERB>key1=value1, key2=value2</VERB>,... where <VERB>key1</VERB>, <VERB>key2,...</VERB> can be one of the following:</SP>
27
<PARAM_NAME>rect</PARAM_NAME>
29
<SP>: sets the bounds of the plot. If this key is given and neither <VERB>frameflag</VERB> nor <VERB>strf</VERB> is given then the <VERB>y</VERB> character of <VERB>strf</VERB> is supposed to be <VERB>7</VERB>. See below for value.</SP>
33
<PARAM_NAME>nax</PARAM_NAME>
35
<SP>: sets the grids definition. If this key is given and neither <VERB>axesflag</VERB> nor <VERB>strf</VERB> is given then the <VERB>z</VERB> character of <VERB>strf</VERB> is supposed to be <VERB>1</VERB>. See below for value.</SP>
39
<PARAM_NAME>frameflag</PARAM_NAME>
41
<SP>: specifies how the frame of the plot is computed. The value is an integer ranging from 0 to 8. It corresponds to the <VERB>y</VERB> character of <VERB>strf</VERB>. See below.</SP>
45
<PARAM_NAME>axesflag</PARAM_NAME>
47
<SP>: specifies what kind of axes are drawn around the plot. The value is an integer ranging from 0 to 5. It corresponds to the <VERB>z</VERB> character of <VERB>strf</VERB>. See below.</SP>
54
<PARAM_NAME>strf</PARAM_NAME>
56
<SP>: is a string of length 3 <VERB>"xyz"</VERB>.</SP>
59
<PARAM_NAME>default</PARAM_NAME>
61
<SP>The default is <VERB>"081"</VERB>.</SP>
65
<PARAM_NAME>x</PARAM_NAME>
67
<SP>: controls the display of captions.</SP>
70
<PARAM_NAME>x=0</PARAM_NAME>
72
<SP>: no caption.</SP>
76
<PARAM_NAME>x=1</PARAM_NAME>
78
<SP>: captions are displayed. They are given by the optional argument <VERB>leg</VERB>.</SP>
85
<PARAM_NAME>y</PARAM_NAME>
87
<SP>: controls the computation of the actual coordinate ranges from the minimal requested values. Actual ranges can be larger than minimal requirements.</SP>
90
<PARAM_NAME>y=0</PARAM_NAME>
92
<SP>: no computation, the plot use the previus (or default) scale</SP>
96
<PARAM_NAME>y=1</PARAM_NAME>
98
<SP>: from the rect arg</SP>
102
<PARAM_NAME>y=2</PARAM_NAME>
104
<SP>: from the min/max of the x, y datas</SP>
108
<PARAM_NAME>y=3</PARAM_NAME>
110
<SP>: built for an isometric scale from the rect arg</SP>
114
<PARAM_NAME>y=4</PARAM_NAME>
116
<SP>: built for an isometric plot from the min/max of the x, y datas</SP>
120
<PARAM_NAME>y=5</PARAM_NAME>
122
<SP>: enlarged for pretty axes from the rect arg</SP>
126
<PARAM_NAME>y=6</PARAM_NAME>
128
<SP>: enlarged for pretty axes from the min/max of the x, y datas</SP>
132
<PARAM_NAME>y=7</PARAM_NAME>
134
<SP>: like y=1 but the previus plot(s) are redrawn to use the new scale</SP>
138
<PARAM_NAME>y=8</PARAM_NAME>
140
<SP>: like y=2 but the previus plot(s) are redrawn to use the new scale</SP>
147
<PARAM_NAME>z</PARAM_NAME>
149
<SP>: controls the display of information on the frame around the plot. If axes are requested, the number of tics can be specified by the <VERB>nax</VERB> optional argument.</SP>
152
<PARAM_NAME>z=0</PARAM_NAME>
154
<SP>: nothing is drawn around the plot.</SP>
158
<PARAM_NAME>z=1</PARAM_NAME>
160
<SP>: axes are drawn, the y=axis is displayed on the left.</SP>
164
<PARAM_NAME>z=2</PARAM_NAME>
166
<SP>: the plot is surrounded by a box without tics.</SP>
170
<PARAM_NAME>z=3</PARAM_NAME>
172
<SP>: axes are drawn, the y=axis is displayed on the right.</SP>
176
<PARAM_NAME>z=4</PARAM_NAME>
178
<SP>: axes are drawn centred in the middle of the frame box.</SP>
182
<PARAM_NAME>z=5</PARAM_NAME>
184
<SP>: axes are drawn so as to cross at point <VERB>(0,0)</VERB>. If point <VERB>(0,0)</VERB> does not lie inside the frame, axes will not appear on the graph.</SP>
194
<PARAM_NAME>rect</PARAM_NAME>
196
<SP>: This argument is used when the second character y of argument <VERB>strf</VERB> is 1, 3 or 5. It is a row vector of size 4 and gives the dimension of the frame: <VERB>rect=[xmin,ymin,xmax,ymax]</VERB>.</SP>
200
<PARAM_NAME>nax</PARAM_NAME>
202
<SP>: This argument is used when the third character z of argument <VERB>strf</VERB> is 1. It is a row vector with four entries <VERB>[nx,Nx,ny,Ny]</VERB> where <VERB>nx</VERB> (<VERB>ny</VERB>) is the number of subgraduations on the x (y) axis and <VERB>Nx</VERB> (<VERB>Ny</VERB>) is the number of graduations on the x (y) axis.</SP>
209
The entries of matrix <VERB>int(a)</VERB> are used as colormap entries in
210
the current colormap. The color associated to <VERB>a(i,j)</VERB> is used
211
do draw a small square of length 1 with center at location
212
<VERB>(x=j,y=(n1-i+1))</VERB>.</P>
214
Enter the command <VERB>Matplot()</VERB> to see a demo.</P>
218
Matplot([1 2 3;4 5 6])
219
// draw the current colormap
220
Matplot((1:xget("lastpattern")))
225
<LINK>colormap</LINK>
231
<LINK>Matplot1</LINK>
234
<AUTHOR>J.Ph.C. </AUTHOR>