1
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
2
<!DOCTYPE MAN SYSTEM "../../manrev.dtd">
4
<LANGUAGE>eng</LANGUAGE>
5
<TITLE>grayplot_properties</TITLE>
6
<TYPE>Scilab Data type</TYPE>
8
<SHORT_DESCRIPTION name="grayplot_properties"> description of the
9
grayplot entities properties</SHORT_DESCRIPTION>
12
The Grayplot entity is a leaf of the graphics entities hierarchy. It
13
represents 2D plots of surface using colors and images (see
14
<VERB>Xgrayplot</VERB>, <VERB>Matplot</VERB> and
15
<VERB>Matplot1</VERB>).
18
<DESCRIPTION_ITEM label="visible: ">
19
<SP>This field contains the <VERB>visible</VERB> property value
20
for the entity . It should
21
be <VERB>"on" </VERB> or <VERB>"off"</VERB> . By default,
22
the plot is visible, the value's property is <VERB>"on"
23
</VERB>. If <VERB>"off"</VERB> the plot is not drawn on the screen.</SP>
25
<DESCRIPTION_ITEM label="data: ">
26
<SP>This is a matrix (n1,n2) which constitue the coordinates of a 2D
27
plots of surface.</SP>
29
<DESCRIPTION_ITEM label="data_mapping: ">
30
<SP>By default the value of this property <VERB>"scaled"</VERB>, the indices of
31
painting colors are proportional to the value <VERB>z</VERB>
32
coordinates. In another case the property take as value <VERB>"direct"</VERB>
33
where the plot is a grayplot and the indices of painting colors are
34
given by the data.</SP>
36
<DESCRIPTION_ITEM label="parent: ">
37
<SP>This property contains the handle of the parent. The parent of the grayplot (Matplot)
38
entity should be of the type <VERB>"Axes"</VERB>.</SP>
44
set("figure_style","new") //create a figure
48
M=round(32*rand(m,n));
51
a=get("current_axes");
52
a.data_bounds= [-1,-1;7,7]
55
h.data_mapping="direct";
57
// A 2D ploting of a matrix using colors
59
a=get("current_axes");
60
a.data_bounds= [0,0;4,4];
62
b=5*ones(11,11); b(2:10,2:10)=4; b(5:7,5:7)=2;
63
Matplot1(b,[1,1,3,3]) ;
67
xclick(); // click the mouse to sets Matplot data
94
<LINK>graphics_entities</LINK>
97
<AUTHOR>Djalel ABDEMOUCHE</AUTHOR>