next up previous contents index
Next: Rectangle Up: Set-show Previous: Mztics   Contents   Index


Object

The set object command defines a single object which will appear in all subsequent 2D plots. You may define as many objects as you like. Currently the supported object types are rectangle, circle, ellipse, and polygon. Rectangles inherit a default set of style properties (fill, color, border) from those set by the command set style rectangle, but each object can also be given individual style properties. Circles, ellipses, and polygons inherit the fill style from set style fill.

Syntax:

   set object <index>
       <object-type> <object-properties>
       {front|back|behind} {fc|fillcolor <colorspec>} {fs <fillstyle>}
       {default} {lw|linewidth <width>}

4#4object-type5#5 is either rectangle, ellipse, circle, or polygon. Each object type has its own set of characteristic properties.

Setting front will draw the object in front of all plot elements, but behind any labels that are also marked front. Setting back will place the object behind all plot curves and labels. Setting behind will place the object behind everything including the axes and back rectangles, thus

   set object rectangle from screen 0,0 to screen 1,1 behind

can be used to provide a colored background for the entire graph or page.

The fill color of the object is taken from the 4#4colorspec5#5. fillcolor may be abbreviated fc. The fill style is taken from 4#4fillstyle5#5. See colorspec (p. [*]) and fillstyle (p. [*]). If the keyword default is given, these properties are inherited from the default settings at the time a plot is drawn. See set style rectangle (p. [*]).


Subsections
next up previous contents index
Next: Rectangle Up: Set-show Previous: Mztics   Contents   Index
2013-01-21