PLPTEX3(3plplot)
β¨ PLPTEX3 β¨
Okay bestie, welcome to PLPTEX3(3plplot) β the PLplot API page for the one and only plptex3. This is the 3D text-writing queen of the library. π
πΈ NAME πΈ
plptex3 β write text inside the viewport of a 3D plot. Yes, actual text, in actual 3D space. It's giving main character energy for your labels. β¨
π¦ SYNOPSIS π¦
plptex3(wx, wy, wz, dx, dy, dz, sx, sy, sz, just, text)
π DESCRIPTION π
So here's the vibe: plptex3 writes text at a specified position, with a specified inclination, and with a specified shear, all within the viewport. And text is clipped at the viewport boundaries β so if your label tries to escape, it gets cut off. No cap. βοΈ
The reference point of a string lies along a line that passes through the string at half the height of a capital letter. The position of that reference point along the line is determined by just, and then the reference point gets placed at world coordinates (wx, wy, wz) within the viewport. π―
The inclination and shear of the string are specified in terms of differences of world coordinates, which makes it easy to write text parallel to a line in a graph. Lowkey genius behavior. π
Redacted form: plptex3(x, y, z, dx, dy, dz, sx, sy, sz, just, text)
This function is used in example 28. π«Ά
π ARGUMENTS π
wx(PLFLT(3plplot), input) β x world coordinate of the reference point of the string. πwy(PLFLT(3plplot), input) β y world coordinate of the reference point of the string. πwz(PLFLT(3plplot), input) β z world coordinate of the reference point of the string. πdx(PLFLT(3plplot), input) β together withdyanddz, this specifies the inclination of the string. The baseline of the string is parallel to a line joining(x, y, z)to(x+dx, y+dy, z+dz). πdy(PLFLT(3plplot), input) β together withdxanddz, this specifies the inclination of the string. πdz(PLFLT(3plplot), input) β together withdxanddy, this specifies the inclination of the string. πsx(PLFLT(3plplot), input) β together withsyandsz, this specifies the shear of the string. The string is sheared so that the characters are vertically parallel to a line joining(x, y, z)to(x+sx, y+sy, z+sz). Ifsx = sy = sz = 0.then the text is not sheared. πsy(PLFLT(3plplot), input) β together withsxandsz, this specifies shear of the string. πsz(PLFLT(3plplot), input) β together withsxandsy, this specifies shear of the string. πjust(PLFLT(3plplot), input) β specifies the position of the string relative to its reference point. Ifjust=0., the reference point is at the left, and ifjust=1., it is at the right of the string. Other values ofjustgive intermediate justifications. βοΈtext(PLCHAR_VECTOR(3plplot), input) β a UTF-8 character string to be written out. ποΈ
π AUTHORS π
Many developers (who are credited at http://plplot.sourceforge.net/credits.php) have contributed to PLplot over its long history. Icons, all of them. π«‘
β SEE ALSO β
PLplot documentation at http://plplot.sourceforge.net/documentation.php. Go read it, iykyk. π
That's the whole page, bestie β go forth and annotate your 3D plots with impeccable placement and zero fear of the viewport boundary. Slay. π
PLplot API Β· PLPTEX3(3plplot) Β· August, 2026 π
π¦ where this page comes from
- ubuntu stonking: plplot-doc 5.15.0+dfsg3-4 Β· LGPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms