Previous Up Next

7.3.1  Individual attributes

Graphic attributes are optional arguments of the form display=value, they must be given as the last argument of a graphic instruction. Attributes are ordered in several categories: color, point shape, point width, line style, line thickness, legend value, position and presence. In addition, surfaces may be filled or not, 3-d surfaces may be filled with a texture, 3-d objects may also have properties with respect to the light. Attributes of different categories may be added, e.g.
plotfunc(x2+y2,[x,y],display=red+line_width_3+filled)

Examples
Input:

polygon(-1,-i,1,2*i,legend="P")

Input:

point(1+i,legend="hello")

Input:

A:=point(1+i);B:=point(-1);display(D:=droite(A,B),hidden_name)

Input:

color(segment(0,1+i),red)

Input:

segment(0,1+i,color=red)

Previous Up Next