IVEdrawline


Purpose
Add a line to an existing plot.
Synopsis
procedure IVEdrawline(handle: integer, x1: real, y1: real, x2: real, y2: real)
Arguments
handle 
The number returned by IVEaddplot.
x1 
The x coordinate of the first point.
y1 
The y coordinate of the first point.
x2 
The x coordinate of the second point.
y2 
The y coordinate of the second point.
Example
The following code draws a square, given the correct aspect ratio of the user graph.
declarations
  square: integer
end-declarations

square:=IVEaddplot("square", IVE_YELLOW)
IVEdrawline(square, -2, -2, -2, 2) 
IVEdrawline(square, -2, 2, 2, 2) 
IVEdrawline(square, 2, 2, 2, -2) 
IVEdrawline(square, 2, -2, -2, -2) 
IVEzoom(-5, -5, 5, 5)
Further information
The line connects the two points whose coordinates are given as parameters.


If you have any comments or suggestions about these pages, please send mail to docs@dashoptimization.com.