Drawing Lines or Curves

PLPLOT provides two functions for drawing line graphs. All lines are drawn in the currently selected color and line style. See page [*] in Section [*] and page [*] in Section [*] for information about changing these parameters.

plline draws a line or curve. The curve consists of n-1 line segments joining the n points in the input arrays. For single line segments, pljoin is used to join two points.

plline(n,x,y); n (int, input) the number of points. x, y (float *, input) pointers to arrays with coordinates of the n points.

pljoin(x1,y1,x2,y2); x1, y1 (float, input) coordinates of the first point. x2, y2 (float, input) coordinates of the second point.