PLBOX3(3plplot)

πŸ’… PLBOX3 β€” a Gen Z field guide to plbox3

ok so this page is straight out of the PLplot API ✨ (yes, the 3-D plotting one, we're fancy now). Welcome to plbox3, akshually the full name up top is PLBOX3(3plplot) β€” iykyk. πŸŽ€


🌸 SYNOPSIS 🌸

plbox3(xopt, xlabel, xtick, nxsub, yopt, ylabel, ytick, nysub, zopt,
zlabel, ztick, nzsub)

like, twelve arguments bestie. twelve. but we're gonna get through it together 🫢


✨ DESCRIPTION ✨

It draws axes, numeric labels and text labels for a three-dimensional surface plot. iconic behavior honestly πŸ’…. For a fuller, more complete description of three-dimensional plotting, go read the PLplot documentation (it's giving "the rest of the lore").

Redacted form β€” General: plbox3(xopt, xlabel, xtick, nxsub, yopt, ylabel, ytick, nysub, zopt, zlabel, ztick, nzsub) β€” same thing, just laid out cuter.

This function shows up in examples 8, 11, 18, and 21. main character energy in all four fr fr ⭐


πŸ‘‘ ARGUMENTS πŸ‘‘

okay buckle up, we're doing all twelve, no skips, no cap.

  • xopt (PLCHAR_VECTOR(3plplot), input) β€” an ascii character string that sets the options for the x axis. It can include any combination of the following letters, upper or lower case, in any order:
    • b β€” draws the axis at base, at height z=zmin where zmin is defined by a call to plw3d(3plplot). ⚠️ You must include this character to use any of the other options. it's the VIP pass basically.
    • d β€” plot labels as date / time. Values are assumed to be seconds since the epoch (as used by gmtime).
    • f β€” always use fixed point numeric labels.
    • i β€” inverts tick marks, so they're drawn downwards rather than upwards.
    • l β€” labels the axis logarithmically. bestie listen: this only affects the labels, not the data, so you gotta compute the logarithms of your data points before passing them to any of the drawing routines. no shortcuts 😭.
    • n β€” writes numeric labels at major tick intervals.
    • o β€” use a custom labelling function to generate the axis label text. That custom labelling function can be defined with the plslabelfunc(3plplot) command. 🧚
    • s β€” enables subticks between major ticks, only valid if t is also specified.
    • t β€” draws major ticks.
    • u β€” if specified, the text label for the axis is written under the axis.
  • xlabel (PLCHAR_VECTOR(3plplot), input) β€” a UTF-8 character string with the text label for the x axis. It's only drawn if u is in the xopt string πŸ™ˆ.
  • xtick (PLFLT(3plplot), input) β€” world coordinate interval between major ticks on the x axis. If it's set to zero, PLplot automatically generates a suitable tick interval for you (slay, it's got you).
  • nxsub (PLINT(3plplot), input) β€” number of subintervals between major x axis ticks, for minor ticks. If it's set to zero, PLplot automatically generates a suitable minor tick interval. ✨
  • yopt (PLCHAR_VECTOR(3plplot), input) β€” an ascii character string setting options for the y axis. The string is interpreted the same way as xopt (so like, go reread that list, it's the exact same vibe).
  • ylabel (PLCHAR_VECTOR(3plplot), input) β€” a UTF-8 character string with the text label for the y axis. Only drawn if u is in the yopt string πŸ’œ.
  • ytick (PLFLT(3plplot), input) β€” world coordinate interval between major ticks on the y axis. Zero β†’ PLplot automatically generates a suitable tick interval.
  • nysub (PLINT(3plplot), input) β€” number of subintervals between major y axis ticks, for minor ticks. Zero β†’ PLplot automatically generates a suitable minor tick interval.
  • zopt (PLCHAR_VECTOR(3plplot), input) β€” an ascii character string setting options for the z axis. It can include any combination of the following letters, upper or lower case, in any order:
    • b β€” draws the z axis to the left of the surface plot.
    • c β€” draws the z axis to the right of the surface plot.
    • d β€” draws grid lines parallel to the x-y plane behind the figure. ⚠️ These lines are not drawn until after plot3d(3plplot) or plmesh(3plplot) are called, because of the need for hidden line removal. patience, babe.
    • e β€” plot labels as date / time. Values are assumed to be seconds since the epoch (as used by gmtime). Note: this suboption is interpreted the same as the d suboption for xopt and yopt, but it has to be identified as e for zopt since d has already been used for the different purpose up above. naming collision moment πŸ’€.
    • f β€” always use fixed point numeric labels.
    • i β€” inverts tick marks, so they're drawn away from the center.
    • l β€” labels the axis logarithmically. Again: only affects the labels, not the data, so compute the logarithms of data points before passing them to any of the drawing routines. 😭
    • m β€” writes numeric labels at major tick intervals on the right-hand z axis.
    • n β€” writes numeric labels at major tick intervals on the left-hand z axis.
    • o β€” use a custom labelling function to generate the axis label text. That custom labelling function can be defined with the plslabelfunc(3plplot) command. πŸ¦‹
    • s β€” enables subticks between major ticks, only valid if t is also specified.
    • t β€” draws major ticks.
    • u β€” if specified, the text label is written beside the left-hand axis.
    • v β€” if specified, the text label is written beside the right-hand axis.
  • zlabel (PLCHAR_VECTOR(3plplot), input) β€” a UTF-8 character string with the text label for the z axis. Only drawn if u or v are in the zopt string πŸ“.
  • ztick (PLFLT(3plplot), input) β€” world coordinate interval between major ticks on the z axis. Zero β†’ PLplot automatically generates a suitable tick interval.
  • nzsub (PLINT(3plplot), input) β€” number of subintervals between major z axis ticks, for minor ticks. Zero β†’ PLplot automatically generates a suitable minor tick interval.

🌈 AUTHORS 🌈

So many developers β€” and they're all credited at http://plplot.sourceforge.net/credits.php β€” have contributed to PLplot over its long history. literal legends, all of them πŸ‘‘πŸ’–


⭐ SEE ALSO ⭐


and that's the page!! πŸ’… thanks for coming to my ted talk bestie, mwah 🫢

sign-off tea β˜•: this lil masterpiece is part of the PLplot API and it's dated August, 2026 β€” PLBOX3(3plplot), periodt. πŸŽ€βœ¨
πŸ“¦ where this page comes from