Scilab Reference Manual |
---|
patch_properties — description of the Patch entity properties
A patch is a filled polyline. The Patch entity is a leaf of the graphics entities hierarchy. This entity defines the parameters for patchs.
visible: | This field contains the visible property value for the entity . It should be "on" or "off" .By default, the patch is visible, the value's property is "on" . If "off" the patch is not drawn on the screen. | ||||||
data: | This field contains the boundary values for the x and y coordinates. It is a two column matrix [x,y] of points. | ||||||
foreground: | This field contains the default foreground property used to draw of the patch. Its value should be a color index (relative to the current colormap). | ||||||
clip_state: | This field contains the clip_state property value for the patch. Its value should be :
| ||||||
clip_box: | This field is to determinate the clip_box property. Its value should be an empty matrix if clip_state is "off". Other cases the vector [x,y,w,h] (upper-left point width height) defines the portions of the patch to display, however clip_state property value will be changed. | ||||||
parent: | This property contains the handle of the parent. The parent of the patch entity should be of the type "Axes" or "Agregation". |
set("figure_style","new") //create a figure a=get("current_axes");//get the handle of the newly created axes a.data_bounds=[-2,-2,2,2]; xfpoly(sin(2*%pi*(0:5)/5),cos(2*%pi*(0:5)/5)) p=get("hdl"); //get handle on current entity (here the pacth entity) p.foreground=14; p.data=[(-2:0.1:2)' sin((-2:0.1:2)*%pi)'] p.clip_box=[-2, .5, 4,1] p.clip_state p.clip_state="off";
Djalel ABDEMOUCHE
<< paramfplot2d | plot2d1 >> |