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 with dy and dz, 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 with dx and dz, this specifies the inclination of the string. πŸ“
  • dz (PLFLT(3plplot), input) β€” together with dx and dy, this specifies the inclination of the string. πŸ“
  • sx (PLFLT(3plplot), input) β€” together with sy and sz, 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). If sx = sy = sz = 0. then the text is not sheared. πŸŒ€
  • sy (PLFLT(3plplot), input) β€” together with sx and sz, this specifies shear of the string. πŸŒ€
  • sz (PLFLT(3plplot), input) β€” together with sx and sy, this specifies shear of the string. πŸŒ€
  • just (PLFLT(3plplot), input) β€” specifies the position of the string relative to its reference point. If just=0., the reference point is at the left, and if just=1., it is at the right of the string. Other values of just give 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