The domain usually defines the data coordinate limits of the graphics to be generated. PHIGURE does not calculate these limits, so they must be provided by the application program.
E.g. :
To produce the above image of a curve with 2 axes, it is necessary to define a 2D domain between 5 and 25 on the X axis, and 0 and 10 on the Y axis. This is achieved by calling the tdomain (&domain) function with
domain.x_min = 5.;
domain.x_max = 25.;
domain.y_min = 0.;
domain.y_max = 10.;
where domain is a Plimit-type variable (see file include phigs.h)
In conceptual terms, a 2D domain is the smallest rectangle capable of containing the data for the image to be generated. This sides of this rectangle are parallel to the axes.
Example in 3D

In 3D, the domain is defined by calling the tdomain3 (&domain3) function with
domain3.x_min = 0.;
domain3.x_max = 10.;
domain3.y_min = 0.;
domain3.y_max = 5.;
domain3.z_min = 0.;
domain3.z_max = 20.;
where domain3 is a Plimit3-type variable (see file include phigs.h)
In conceptual terms, a 3D domain is the smallest parallelepiped capable of containing the data for the image to be generated. This sides of this parallelepiped are parallel to the axes.