TDPLCH(3NCARG)
π TDPLCH β the NCAR Graphics girlie's guide π
okay so bestie, welcome to the TDPLCH(3NCARG) page from the NCAR GRAPHICS manual, and honestly? this one is a whole mood. it draws a character string at a specified position in the plane of the reference parallelogram. that's it. that's the function. and we're gonna stan it responsibly. β¨
β¨ NAME β¨
TDPLCH β draw a character string at a specified position in the plane of the reference parallelogram. yes, literally just that, and she does it beautifully. π
β¨ SYNOPSIS β¨
CALL TDPLCH (XPOS, YPOS, CHRS, SIZE, ANGD, CNTR)
β¨ C-BINDING SYNOPSIS β¨
#include <ncarg/ncargC.h>
void c_tdplch(float xpos, float ypos, char *chrs, float size, float
angd, float cntr)
(not the line break in the middle of the signature being kinda dramatic π that's just how she's written, we keep it exactly as-is, no cap)
πΈ DESCRIPTION πΈ
so the arguments of TDPLCH are, like, the whole personality of this routine, and here they are one by one:
XPOSandYPOSβ (input expressions of type REAL) these are the parallelogram coordinates of a point relative to which the character string is to be positioned. think of it as where the string is gonna hang out, in parallelogram-space. π¦CHRSβ (input, of type CHARACTER) a string suitable for input to the PLOTCHAR routine PLCHHQ. so like, if PLCHHQ can eat it, TDPLCH can serve it. πSIZEβ (an input expression of type REAL) this one specifies the width of the characters to be used as a multiple of the "X" dimension of the reference parallelogram. and here's the tea: if the reference parallelogram is not a square, distortion of the characters is to be expected β for example, if the reference parallelogram is twice as wide as it is high, then the same will be true of characters drawn by TDPLCH. so she's gonna stretch right along with your parallelogram, and that's on purpose, not a bug. πANGDβ (an input expression of type REAL) specifies the angle, in degrees, at which the character string is to be drawn relative to the reference parallelogram. the mapping is:0=> in the direction of positive X90=> in the direction of positive Y180=> in the direction of negative X- and so on. π₯
CNTRβ (an input expression of type REAL) specifies how the character string is to be centered relative to the point(XPOS,YPOS)within the reference parallelogram. so:- if
CNTR = -1, the leading edge of the character string will be placed at(XPOS,YPOS) - if
CNTR = 0, the center of the character string will be placed at(XPOS,YPOS) - if
CNTR = +1, the trailing edge of the character string will be placed at(XPOS,YPOS) - other values may be used, with the logical results β for example, if
CNTR = -.5, the point halfway between the leading edge and the center of the character string will be placed at(XPOS,YPOS)π
- if
π C-BINDING DESCRIPTION π
the C-binding argument descriptions are the same as the FORTRAN argument descriptions. like, identical. no plot twist. π«Ά
π ACCESS π
to use TDPLCH or c_tdplch, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c, preferably in that order. order matters bestie, do not freestyle this one. β
π SEE ALSO π
online, the whole friend group is: tdclrs, tdctri, tddtri, tdgeti, tdgetr, tdgrds, tdgrid, tdgtrs, tdinit, tditri, tdlbla, tdlbls, tdline, tdlnpa, tdmtri, tdotri, tdpack, tdpack_params, tdpara, tdprpa, tdprpi, tdprpt, tdseti, tdsetr, tdsort, tdstri, tdstrs. the group chat is poppin. π§
π COPYRIGHT π
Copyright (C) 1987-2009 University Corporation for Atmospheric Research The use of this Software is governed by a License Agreement.
okay that's the whole page, every flag, every value, every library, every cousin routine β nothing skipped, nothing invented, periodt. π
and for the cute sign-off: this page comes from the UNIX manual, dated July 1997, filed under TDPLCH(3NCARG). old page, still slaying. bye bestie, go draw some strings. πβ¨
π¦ 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