POINTS(3NCARG)
β¨ POINTS(3NCARG) β the NCAR Graphics glow-up β¨
okay bestie, gather round π this is POINTS, one of the NCAR Graphics girlies, and she's here to draw markers at a whole series of positions in your user coordinate system. and if you're feeling extra? she can connect those markers with lines too. it's giving connect-the-dots but make it β¨graphicsβ¨
πΈ SYNOPSIS πΈ
CALL POINTS (PX,PY,NP,IC,IL)
π C-BINDING SYNOPSIS π
#include <ncarg/ncargC.h>
void c_points (float *px, float *py, int np, int ic, int il)
π DESCRIPTION π
PXβ an input array of typeREAL, and it's literally the X user coordinates of where yourNPmarkers are gonna live π¦PYβ an input array of typeREAL, same energy, but the Y user coordinates for those sameNPmarkers πNPβ an input expression of typeINTEGERthat says how many markers we're drawing. the headcount, the guest list, theNPπICβ an input expression of typeINTEGERdescribing what kind of marker you want. she has RANGE, so pay attention:IC < 0β draw a GKS polymarker of type-IC, like so:-1β requests a dot (.)-2β requests a plus (+)-3β requests an asterisk (*)-4β requests a circle (o), and-5β requests a cross (x)
and listen π β the polymarker size and color can be set by calling the GKS routines GSMKSC, GSCR, and GSPMCI before you call POINTS. set the vibe first, draw second, no cap.
IC = 0β draw a dot (.). effect is the same asIC = -1. twin behavior fr fr πIC > 0β draw the FORTRAN77 characterCHAR(IC). yes bestie, you can just... ask for a character. main character energy.
in this case, the GKS routine GTX is used to draw the specified character CHAR(IC) at each of the NP points. each character is drawn with the horizontal and vertical text alignment centered at the specified point with a call to the GKS routine GSTXAL. the horizontal and vertical text alignment parameters are then restored to their previous values β she puts the settings back where she found them, respectful queen π«Ά other text attributes such as character orientation, character height, and color, can be set by calling GKS text attribute setting routines before the call to the routine POINTS.
ILβ a input expression of typeINTEGERthat decides whether the markers get connected with line segments. the friendship bracelet setting πIL = 0β do not connect the markers with line segments. everyone stands alone, independent icons β¨IL .NE. 0β connect the markers with line segments. now they're linked, it's a whole storyline π
π¦ C-BINDING DESCRIPTION π¦
the C-binding argument descriptions are the same as the FORTRAN argument descriptions. same facts, different outfit π
π₯ USAGE π₯
here's the tea β if the routine SET has not been called, or if the last call to SET specified linear mappings in X and Y, and the value of IC specifies a GKS polymarker, then the GKS routine GPM is called to draw the polymarkers. and if, in addition, IL is non-zero, the GKS routine GPL is called to draw the line segments. in all other cases, NCAR Graphics routines are used to draw the more complicated set of graphical objects. she switches lanes when she has to π
since a call to POINTS can result in subsequent calls to the GKS routines GPM or GPL, various polymarker and polyline attributes may need to be set before the routine POINTS is called. polymarker attributes which can be set are listed above in the DESCRIPTION Section. polyline attributes which can be set include polyline type (call GSLN), polyline line width (call GSLWSC), and color (call GSCR and GSPLCI). pregame your attributes, bestie π
β οΈ heads up: a call to the routinePOINTScauses the SPPS polyline buffer to be flushed. refer to the man page for the routinePLOTIF. she empties the buffer. no leftovers. periodt π
π EXAMPLES π
use the ncargex command to see the following relevant examples: agex11, cmptra. go look, they're lowkey iconic π
π ACCESS π
to use POINTS or c_points, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c, preferably in that order. the order matters, don't do your own thing π
β SEE ALSO β
Online: gpl, gsln, gslwsc, gpm, gsmk, gsmksc, gtx, gstxal, gstxp, gstxfp, gschh, gschsp, gschup, gschxp, gscr, gstxci, gsplci, gspmci, spps, spps_params, plotif, ngdots, point, ncarg_cbind
Hardcopy: NCAR Graphics Fundamentals, UNIX Version; User's Guide for NCAR GKS-0A Graphics
π COPYRIGHT π
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 the POINTS(3NCARG) man page from NCAR Graphics, UNIX era, dated March 1993 β yeah she's a vintage icon, an elder stateswoman of plotting, and she still ate πβ¨ no notes.
π¦ where this page comes from
- epel 9: ncl-devel 6.6.2-59.el9 Β· LicenseRef-Callaway-BSD
- fedora 43: ncl-devel 6.6.2-58.fc43 Β· LicenseRef-Callaway-BSD
- fedora 44: ncl-devel 6.6.2-62.fc44 Β· LicenseRef-Callaway-BSD
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms