Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.3.2 - English

Change language to:
Français - 日本語 - Português

Please note that the recommended version of Scilab is 2024.1.0. This page might be outdated.
See the recommended documentation of this function

Scilab help >> Graphics > geometric_shapes > arc_properties


description of the Arc entity properties


The Arc entity is a leaf of the graphics entities hierarchy. This entity defines the parameters for ellipses and part of ellipses and the filled ones.


This field contains the handle of the parent. The parent of the arc entity should be of the type "Axes" or "Compound".


This property contains a vector with the children of the handle. However, arc handles currently do not have any children.


This property is a positive real specifying the line width in pixels. The displayed width is actually determined by rounding the supplied width to the nearest integer. The only exception is vectorial export where the whole thickness value is considered.


The line_style property value should be an integer in [0 8]. 0 and 1 stands for solid, the other value stands for a selection of dashes (see getlinestyle).


This property allows to display or not the line representing the arc. The value must be "on" or "off".


If fill_mode property value is "on", the arc is filled with the background color.


This field contains the default foreground property value used to draw the outside of the arc. It should be a color index (relative to the current colormap).


This field contains the color used to fill the arc. It should be a color index (relative to the current colormap).


This property is to return the coordinates of the upper-left point, the width and the height of the inclosing rectangle as well as the boundary angles of the sector. It is the matrix in user coordinates [xleft,yup,[zup],width,height,a1,a2] where a1 and a2 are the sector boundary angles in degree.

Warning: in Scilab versions up to 4.1.2 a1 and a2 were given in degree/64.


This field contains the visible property value for the entity . It should be "on" or "off". If "on" the arc is drawn, If "off" the arc is not displayed on the screen.


This field controls the kind of discretisation used to render the arc. Its value must be either "nurbs" or "lines". If "nurbs" is selected then the arc is rendered using nurbs curves and surfaces. This results in the display of a perfect ellipse part whatever the view point is. If "lines" is selected then the arc is approximated with a constant number of lines. This reduce drawing time but some sharp edges may appear upon zooming. The use of "lines" value is discouraged and should only be used if a loss in framerate is noticed when using "nurbs" value.


This field contains the clip_state property value for the arc. Clip_state value should be :

  • "off" this means that the arc is not clipped

  • "clipgrf" this means that the arc is clipped outside the Axes box.

  • "on" this means that the arc is clipped outside the arc given by property clip_box.


This field is to determinate the clip_box property. By Default 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 arc to display, however clip_state property value will be changed.


This field can be use to store any scilab variable in the arc data structure, and to retreive it.


a=get("current_axes");//get the handle of the newly created axes


arc=get("hdl"); //get handle on current entity (here the arc entity)
arc.foreground=5;,[3 6])=[2 270*64];  

See Also

  • set — set a property value of a graphic entity object or of a User Interface object.
  • get — Retrieve a property value from a graphics entity or an User Interface object.
  • delete — delete a graphic entity and its children.
  • xarc — draw a part of an ellipse
  • xarcs — draw parts of a set of ellipses
  • xfarc — fill a part of an ellipse
  • xfarcs — fill parts of a set of ellipses
  • graphics_entities — description of the graphics entities data structures



Jean-Baptiste SILVY

<< geometric_shapes geometric_shapes rectangle_properties >>

Copyright (c) 2022-2023 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Thu May 12 11:44:26 CEST 2011