Coordinate Systems

The DATAPLOT language accepts coordinates in three different coordinate systems, which are called world, virtual and normalized.

  • The world coordinates are selected to represent any kind of data and be of “any” magnitude.
  • The virtual coordinate system uses centimeters as units. However, the actual size of one unit is dependent on the implementation of the device driver in DIGLIB. It is not recommended to use this coordinate system if different output devices are used for preliminary and final plots.
  • The normalized coordinate system goes from zero to one. When plotting, you interactively scale each axis by selecting the minimum and maximum word coordinates on the axis. In the normalized coordinate system, the minimum axis value is represented by zero and the maximum by one. DIGLIB draws a square between the four points (of the X and Y axes) that are determined by the coordinates zero and one in the normalized coordinates.

It is also possible to draw triangular plots as described below. However, in most places, it only references square diagrams. All data points within the minimum and maximum word coordinates are plotted inside this square. DIGLIB also writes tic marks and corresponding word values at such tic marks.

It may be convenient to use normalized coordinates to draw boxes and texts. You can give normalized coordinates outside zero and one if you want to write texts outside the area enclosed by the square. To ensure proper operation outside the normalized box, the clipping must be turned off.