Man Scilab
grayplot_properties
Scilab Data type
grayplot_properties - description of the
grayplot entities properties
Description
The Grayplot entity is a leaf of the graphics entities hierarchy. It
represents 2D plots of surface using colors and images (see
Xgrayplot
,
Matplot
and
Matplot1
).
-
visible:
This field contains the
visible
property value
for the entity . It should
be
"on"
or
"off"
. By default,
the plot is visible, the value's property is
"on"
. If
"off"
the plot is not drawn on the screen.
-
data:
This is a matrix (n1,n2) which constitue the coordinates of a 2D
plots of surface.
-
data_mapping:
By default the value of this property
"scaled"
, the indices of
painting colors are proportional to the value
z
coordinates. In another case the property take as value
"direct"
where the plot is a grayplot and the indices of painting colors are
given by the data.
-
parent:
This property contains the handle of the parent. The parent of the grayplot (Matplot)
entity should be of the type
"Axes"
.
Examples
set("figure_style","new") //create a figure
m=5;n=5;
M=round(32*rand(m,n));
grayplot(1:m,1:n,M)
a=get("current_axes");
a.data_bounds= [-1,-1;7,7]
h=a.children
h.data_mapping="direct";
// A 2D ploting of a matrix using colors
xbasc()
a=get("current_axes");
a.data_bounds= [0,0;4,4];
b=5*ones(11,11); b(2:10,2:10)=4; b(5:7,5:7)=2;
Matplot1(b,[1,1,3,3]) ;
h=a.children
for i=1:7
xclick(); // click the mouse to sets Matplot data
h.data=h.data+4;
end
See Also
set
,
get
,
delete
,
grayplot
,
Matplot
,
Matplot1
,
graphics_entities
,
Author
Djalel ABDEMOUCHE
Back