logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

LINE - draws a line from the point (X1,Y1) to the point (X2,Y2). The "pen" (for subsequent calls to

Access

       To use LINE or c_line, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c, preferably in that
       order.

C-Binding Description

       The C-binding argument descriptions are the same as the FORTRAN argument descriptions.

C-Binding Synopsis

       #include <ncarg/ncargC.h>

       void c_line (float x1, float y1, float x2, float y2)

Description

       X1          (an  input  expression of type REAL) defines the X user coordinate of the starting point of a
                   line segment.

       Y1          (an input expression of type REAL) defines the Y user coordinate of the starting point  of  a
                   line segment.

       X2          (an  input  expression  of  type REAL) defines the X user coordinate of the ending point of a
                   line segment.

       Y2          (an input expression of type REAL) defines the Y user coordinate of the  ending  point  of  a
                   line segment.

Examples

       Use the ncargex command to see the following relevant examples: mpex07, mpex09, cbex01,  coex01,  coex03,
       epltch, srex01, and tgflas.

Name

       LINE - draws a line from the point (X1,Y1) to the point (X2,Y2).  The "pen" (for subsequent calls to
       FRSTPT, VECTOR, PLOTIF, and PLOTIT) is left at (X2,Y2).

See Also

       Online: gpl, gsln, gslwsc, gscr, gsplci, spps, spps_params, frstpt, vector, plotif, curve, ncarg_cbind

       Hardcopy: NCAR Graphics Fundamentals, UNIX Version; User's Guide for NCAR GKS-0A Graphics

Synopsis

       CALL LINE (X1,Y1,X2,Y2)

Usage

       Polyline  type,  line  width,  and  color  can be set by calling the GKS routines GSLN, GSLWSC, GSCR, and
       GSPLCI before calling LINE.

       This routine flushes the SPPS polyline buffer at each line draw.  Thus, polyline attributes can be safely
       changed between successive calls.

See Also