Plotchar_params(3NCARG)
β¨ Plotchar_params(3NCARG) β¨
okay bestie, welcome to the Plotchar_params page from NCAR GRAPHICS! this is your group-chat rundown of every internal parameter that controls Plotchar. no cap, we're keeping all the deets. π
NAME
Plotchar_params β this document briefly describes all the internal parameters of Plotchar.
DESCRIPTION
The following shows all of the internal parameters that affect the behavior of PCHIQU. Each entry includes the name of a parameter, its FORTRAN type, its default value, and a short description of the parameter.
Internal Parameters of PCHIQU
ASβ Real β default0.If you set this nonzero, it's giving extra space between characters. A negative value is interpreted in digitization units. A positive value is a multiplier of the nominal character width specified by the argumentSIZE(and, in the case of thePWRITXdatabase, one ofPW,IW, orCW, whichever is appropriate).BCβ Integer array β defaultall -1'sA three-slot array of "box colors". Slot 1 is the outline of the box, slot 2 is the fill, and slot 3 is the fill of the box shadow. The value-1means "unspecified"; anything>= 0picks a particular color index. To access slot 1, useBC(1); slot 2 isBC(2), etc. The nameBCall by itself? That's slot 1, bestie.BFβ Integer β default0If this is nonzero, it's asking for a box around each string of characters written byPCHIQU. The value is a three-bit flag: add1to draw the outline,2to fill the box, and4to draw its shadow. (1= "draw outline",2= "fill box",3= "fill box and draw outline",4= "fill shadow",5= "fill shadow and draw outline",6= "fill shadow and fill box", and7= "fill shadow, fill box, and draw outline".)BLβ Real β default0.If this is greater than zero, it sets the line width used while drawing the box around a character string. Anything less than or equal to zero means "unspecified".BMβ Real β default.15The width of box margins β that's the space between the characters and the outline of the box β stated as a fraction of principal character height.BXβ Real β default-.05The X offset for box shadows, as a fraction of principal character height. This is actually an offset in the directionANGD.BYβ Real β default-.05The Y offset for box shadows, as a fraction of principal character height. This is actually an offset in the directionANGD+90.CCβ Integer array β defaultall -1Β΄sAn array of color indices. Element 0 is the principal character color, and elements 1 through 16 are special colors for certain characters. The value-1means "unspecified"; anything>= 0is a particular color index to use. You can call the routinePCDLSCto define a standard default set of colors for elements 1 through 16. To access element 0, useCC(0); element 1 isCC(1), etc. The nameCCby itself? That's element 0.CDβ Integer β default0The value0picks the complex dataset from thePWRITXdatabase;1picks the duplex dataset.CEβ Integer β default0The value0selects centering of strings as specified by the argumentCNTR, and1selects exact centering, using text-extent quantities. This works as desired only whenQUis zero.CHβ Real β default9.Digitized cartographic height. πCLβ Real β default0.If it's greater than zero, this is the desired principal line width used while drawing characters. A value less than or equal to zero says line width is unspecified.CSβ Real β default0.Constant-spacing flag. The high-quality character sets normally have variable spacing when written "across" the frame. When this is nonzero, it forces the centers of the characters to be a constant distance apart. A negative value: its absolute value specifies the spacing in digitization units. A positive value: it's a multiplier of the nominal character width specified by the argumentSIZE(and, in the case of thePWRITXdatabase, one ofPW,IW, orCW, whichever is appropriate). Medium- and low-quality characters are not affected by this parameter.CVβ Real β default14.Digitized cartographic vertical spacing. β¨CWβ Real β default8.Digitized cartographic width. πΈDBβ Real β defaultnoneOutput only β distance from(XPOS,YPOS)to the bottom edge of the text-extent box for the last string drawn, in the fractional system.DLβ Real β defaultnoneOutput only β distance from(XPOS,YPOS)to the left edge of the text-extent box for the last string drawn, in the fractional system.DOβ Integer β default1The drawing order for the characters. Positive value? Characters are drawn in the order they appear in the input character string; otherwise, opposite order. If the absolute value is1, all shadows are drawn first, then all character bodies, then all outlines. If the absolute value is2or greater, each character is drawn completely β shadow, body, and outline β before moving to the next character. This can be used, together withSS, to "stack" characters so they apparently overlap one another.DRβ Real β defaultnoneOutput only β distance from(XPOS,YPOS)to the right edge of the text-extent box for the last string drawn, in the fractional system.DTβ Real β defaultnoneOutput only β distance from(XPOS,YPOS)to the top edge of the text-extent box for the last string drawn, in the fractional system.FBβ Real β default.00003Fidelity parameter for Bezier curves used to draw the filled fonts. The value says how close the interpolated curve should be to the actual Bezier curve, as a fraction of the height of the plotter frame.FCβ Character β default':'(a colon) Function-code character. πFNβ Character or Integer β default0Font number. The default value,0, implies the use of thePWRITXdatabase. Use a positive valuento force the use of fontcap databasen. Use a character-string font name, as shown in table 2 in the programmer document forPLOTCHAR, in a call toPCSETC; a call toPCGETCwill return one of these font names. The list of font names is also reproduced later in this man page.IHβ Real β default13.Digitized indexical height. πISβ Real β default7.Offset used when subscripting or superscripting a character of indexical size, in digitization units.IVβ Real β default20.Digitized indexical vertical spacing. πIWβ Real β default12.Digitized indexical width. βMAβ Integer β default0The mapping flag. The value zero says no mapping is to occur; nonzero values say thatPCMPXYis to be called and select particular mappings.OCβ Integer β default1The outline color specifier. The value-1says outline color is unspecified; a value of0or greater selects a particular color index.OFβ Integer β default0The outline flag. The value0says outlines are not to be drawn; a nonzero value says outlines are to be drawn.OLβ Real β default0.The outline line width. A value less than or equal to zero says outline width is unspecified; a value greater than zero is the desired line width, as a fraction of "normal".ORβ Real β default0.The out-of-range flag. The value0.says that no values returned by the routinePCMPXYare "out of range"; any other value is the value to use as an out-of-range signal, indicating that a point to be mapped is invisible under the current mapping.PHβ Real β default21.Digitized principal height. πPSβ Real β default10.Offset used when subscripting or superscripting a character of principal size, in digitization units.PVβ Real β default32.Digitized principal vertical spacing. π¦PWβ Real β default16.Digitized principal width. πQUβ Integer β default0Quality flag. The value0means use the high-quality characters,1means use the medium-quality characters ofPCMEQU, and2means use the "low-quality" characters ofPCLOQU.Β΄SAΒ΄βReal, default.88888888...β a multiplier for the sizes of all characters written directly by PCHIQU. It was introduced in version 3.2 of NCAR Graphics so that characters written by PCHIQU are the same size as those written by PCMEQU. The default value is(16/21)(7/6). If you're one of those users who wants PCHIQU to produce the same size characters it did before, you can setΒ΄SAΒ΄to1., but bestie, this is not recommended. πΒ΄SCΒ΄βInteger, default0β the shadow color specifier. The value"-1"says that shadow color is unspecified; a value of0or greater selects a particular color index.Β΄SFΒ΄βInteger, default0β the shadow flag. The value0says shadows are not to be drawn; a nonzero value says shadows are to be drawn.Β΄SLΒ΄βReal, default0.β the shadow line width. A value less than or equal to zero says that shadow line width is unspecified; a value greater than zero is the desired line width, as a fraction of"normal".Β΄SSΒ΄βReal, default0.β the subtract-space flag. When this parameter is nonzero, it reduces the space between characters. If a negative value is used, it's interpreted in digitization units. If a positive value is used, it's interpreted as a multiplier of the nominal character width specified by the argumentSIZE(and, in the case of the PWRITX database, one ofΒ΄PWΒ΄,Β΄IWΒ΄, orΒ΄CWΒ΄, whichever is appropriate).Β΄SXΒ΄βReal, default-.05β the X offset for character shadows, stated as a fraction of principal character height. This is actually an offset in the directionANGD.Β΄SYΒ΄βReal, default-.05β the Y offset for character shadows, stated as a fraction of principal character height. This is actually an offset in the directionANGD+90.Β΄TEΒ΄βInteger, default0β the text-extent computation flag. Zero means do not compute text-extent quantities, nonzero means do compute them. IfΒ΄TEΒ΄is nonzero and the value of the argumentANGD, in a call to PCHIQU, is exactly360.instead of0., no characters are drawn, but the text-extent quantities are still computed. This provides a way to get these quantities prior to actually drawing a particular string.Β΄UNΒ΄βInteger, default3β this used to be the FORTRAN logical unit number to be used in reading the data defining the various character sets. It is no longer used for anything. πΒ΄XBΒ΄βReal, default0.β for retrieval only. The X position at the beginning of the last string written by PCHIQU, in the fractional system.Β΄XCΒ΄βReal, default0.β for retrieval only. The X position at the center of the last character written by PCHIQU, in the fractional system.Β΄XEΒ΄βReal, default0.β for retrieval only. The X position at the end of the last string written by PCHIQU, in the fractional system.Β΄YBΒ΄βReal, default0.β for retrieval only. The Y position at the beginning of the last string written by PCHIQU, in the fractional system.Β΄YCΒ΄βReal, default0.β for retrieval only. The Y position at the center of the last character written by PCHIQU, in the fractional system.Β΄YEΒ΄βReal, default0.β for retrieval only. The Y position at the end of the last string written by PCHIQU, in the fractional system.
β¨ Internal Parameters of PCMEQU β¨
The internal parameter Β΄HWΒ΄ specifies the desired ratio of the character height (the height of a capital) to the character width (excluding white space). The default value of Β΄HWΒ΄ is 1.75, reflecting the fact that the capitals are digitized to be 7 units high and 4 units wide and 1.75 is therefore their natural aspect ratio. Negative values of Β΄HWΒ΄ may be used. The absolute value will be used as the ratio, but, in addition, PCHIQU will be prohibited from changing Β΄HWΒ΄ (which it otherwise does when the quality flag Β΄QUΒ΄ is set to 1).
PCMEQU reacts properly to nonzero values of Β΄MAΒ΄ and Β΄ORΒ΄, which are used to request mapping of characters through the routine PCMPXY, as described for PCHIQU, above. Characters that are partly visible and partly invisible are clipped at the visible/invisible boundary.
β¨ Internal Parameters of PCLOQU β¨
PCLOQU reacts to nonzero values of Β΄MAΒ΄ and Β΄ORΒ΄, which are used to request mapping of characters through the routine PCMPXY, as described for PCHIQU, above. However, it doesn't react in quite the same way: Mapping will affect the position of the string written by a call to PCLOQU, the angle at which it is written, and the size of the characters used. The shape of the characters will not be affected (and cannot be, since the characters are drawn by calling the GKS routine GTX instead of GPL). If the point (XPOS,YPOS) is visible under the mapping, the whole string is considered to be visible; otherwise, the whole string is considered to be invisible. The results can be pretty crude; for that reason, mapping is not recommended.
β¨ A List of Font Names for Use in Calls to PCSETC That Set Β΄FNΒ΄ β¨
0 'PWRITX DATABASE '
1 'DEFAULT '
2 'CARTOGRAPHIC_ROMAN'
3 'CARTOGRAPHIC_GREEK'
4 'SIMPLEX_ROMAN '
5 'SIMPLEX_GREEK '
6 'SIMPLEX_SCRIPT '
7 'COMPLEX_ROMAN '
8 'COMPLEX_GREEK '
9 'COMPLEX_SCRIPT '
10 'COMPLEX_ITALIC '
11 'COMPLEX_CYRILLIC '
12 'DUPLEX_ROMAN '
13 'TRIPLEX_ROMAN '
14 'TRIPLEX_ITALIC '
15 'GOTHIC_GERMAN '
16 'GOTHIC_ENGLISH '
17 'GOTHIC_ITALIAN '
18 'MATH_SYMBOLS '
19 'SYMBOL_SET1 '
20 'SYMBOL_SET2 '
21 'HELVETICA '
22 'HELVETICA-BOLD '
25 'TIMES-ROMAN '
26 'TIMES-BOLD '
29 'COURIER '
30 'COURIER-BOLD '
33 'GREEK '
34 'MATH-SYMBOLS '
35 'TEXT-SYMBOLS '
36 'WEATHER1 '
37 'WEATHER2 '
121 'O_HELVETICA '
122 'O_HELVETICA-BOLD '
125 'O_TIMES-ROMAN '
126 'O_TIMES-BOLD '
129 'O_COURIER '
130 'O_COURIER-BOLD '
133 'O_GREEK '
134 'O_MATH-SYMBOLS '
135 'O_TEXT-SYMBOLS '
136 'O_WEATHER1 '
137 'O_WEATHER2 '
β¨ SEE ALSO β¨
- Online:
pcdlsc,pcgetc,pcgeti,pcgetr,pcpnwi,pcrset,pcsetc,pcseti,pcsetr,ncarg_cbind. - Hardcopy:
NCAR Graphics Fundamentals, UNIX Version
β¨ 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 bestie! this little legend comes from the UNIX manual, March 1993, and it's all about Plotchar_params(3NCARG). stay iconic, stay mapped, and may your characters always be exactly the size you expect πβ¨
π¦ 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