VECTOR(3NCARG)

πŸ’– VECTOR(3NCARG) πŸ’–

okay bestie, welcome to the NCAR GRAPHICS corner of the manual, where we draw lines and feel iconic about it ✨


🌸 NAME 🌸

VECTOR β€” bestie, this one generates a "pen-down" move to a specified point in the user coordinate system. That's the whole vibe. VECTOR is used in conjunction with the routine FRSTPT to draw lines, so like… they're a duo, they're the main characters, you don't use one without the other πŸ’…


✨ SYNOPSIS ✨

CALL VECTOR (PX,PY)

πŸ¦‹ C-BINDING SYNOPSIS πŸ¦‹

#include <ncarg/ncargC.h>

void c_vector (float px, float py)

πŸ’œ DESCRIPTION πŸ’œ

  • PX β€” an input expression of type REAL, and it defines the X user coordinate. That's it, that's the job πŸŽ€
  • PY β€” an input expression of type REAL, and it defines the Y user coordinate. sister of PX, equally important, no cap πŸ’–

🌈 C-BINDING DESCRIPTION 🌈

ngl, the C-binding argument descriptions are literally the same as the FORTRAN argument descriptions. same energy, same facts, no notes ✨


πŸ‘‘ USAGE πŸ‘‘

okay so here's the tea β˜• Polyline type, line width, and color can all be set by calling the GKS routines GSLN, GSLWSC, GSCR, and GSPLCI before calling VECTOR. Order matters, bestie, do the settings first πŸ”₯

⚠️ and now the important part, listen up: for the sake of efficiency, the routines FRSTPT and VECTOR buffer the polylines resulting from pen moves. So one must be sure to flush the SPPS polyline buffer before changing polyline attributes. A CALL PLOTIF (0.,0.,2) will flush the buffer. that's the cheat code, write it down πŸ“πŸ’€

πŸŽ€ EXAMPLES πŸŽ€

Use the ncargex command to see the following relevant examples: tgflas. go look at it, it's giving demonstration ✨


🫢 ACCESS 🫢

To use VECTOR or c_vector, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c, preferably in that order. the order is not a suggestion bestie, respect the sequence πŸ’…


⭐ SEE ALSO ⭐

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

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


Copyright (C) 1987-2009
University Corporation for Atmospheric Research
The use of this Software is governed by a License Agreement.

and that's the whole page, bestie πŸ¦‹ this was VECTOR(3NCARG) from UNIX, dated March 1993 β€” yeah she's an elder but she ate and left no crumbs, periodt πŸ‘‘βœ¨