PLAXES(3plplot)
π NAME π
ok so plaxes β it draws a box with axes and everything, but with an arbitrary origin, bestie. (this page is from the PLplot API manuals, fyi π«Ά)
β¨ SYNOPSIS β¨
plaxes(x0, y0, xopt, xtick, nxsub, yopt, ytick, nysub)
π DESCRIPTION π
So what it does is: it draws a box around the viewport you've currently defined, except the world-coordinate origin is whatever you want it to be β you set that with x0 and y0 β and then it labels the whole thing with world coordinate values that actually match your window. lowkey iconic. β¨
β οΈ which means plaxes(3plplot) should only be called after you've defined both the viewport and the window. no skipping steps, babe.
The ascii character strings xopt and yopt are the whole vibe-control β they tell it how the box should be drawn (details down in ARGUMENTS, keep scrolling π
).
And if ticks and/or subticks are getting drawn for a particular axis? You can either spell out the tick intervals and number of subintervals explicitly, or just set the appropriate arguments to zero and let it default them for you. easy. π
Redacted form: General: plaxes(x0, y0, xopt, xtick, nxsub, yopt, ytick, nysub)
And ngl β this function is not used in any examples. π she's a real one but she's not on the demo reel.
π ARGUMENTS π
x0(PLFLT(3plplot), input) β World X coordinate of the origin. π¦y0(PLFLT(3plplot), input) β World Y coordinate of the origin. π¦xopt(PLCHAR_VECTOR(3plplot), input) β An ascii character string specifying options for the x axis. It can include any combination of these letters (upper or lower case, in any order), periodt:aβ Draws axis. X-axis is the horizontal line (y=0), and Y-axis is the vertical line (x=0).bβ Draws the bottom (X) or left (Y) edge of the frame.cβ Draws the top (X) or right (Y) edge of the frame.dβ Plot labels as date / time. Values are assumed to be seconds since the epoch (as used bygmtime).fβ Always use fixed point numeric labels.gβ Draws a grid at the major tick interval.hβ Draws a grid at the minor tick interval.iβ Inverts tick marks, so they're drawn outwards instead of inwards.lβ Labels the axis logarithmically. This only affects the labels, not the data β so you gotta compute the logarithms of your data points yourself before passing them to any of the drawing routines. no cap, it won't do it for you πmβ Writes numeric labels at major tick intervals in the unconventional location (above box for X, right of box for Y).nβ Writes numeric labels at major tick intervals in the conventional location (below box for X, left of box for Y).oβ Use a custom labelling function to generate the axis label text. You can define that custom labelling function with theplslabelfunc(3plplot)command. π§sβ Enables subticks between major ticks β only valid iftis also specified.tβ Draws major ticks.uβ Exactly like"b"except it doesn't draw the edge line.wβ Exactly like"c"except it doesn't draw the edge line.xβ Exactly like"t"(including the side effect of the numerical labels for the major ticks) except it excludes drawing the major and minor tick marks.
xtick(PLFLT(3plplot), input) β World coordinate interval between major ticks on the x axis. If you set it to zero, PLplot automatically generates a suitable tick interval for you. π«Άnxsub(PLINT(3plplot), input) β Number of subintervals between major x axis ticks, for the minor ticks. If you set it to zero, PLplot automatically generates a suitable minor tick interval.yopt(PLCHAR_VECTOR(3plplot), input) β An ascii character string specifying options for the y axis. It can include any combination of the letters defined above forxopt, and in addition it may contain:vβ Write numeric labels for the y axis parallel to the base of the graph, rather than parallel to the axis. π
ytick(PLFLT(3plplot), input) β World coordinate interval between major ticks on the y axis. If you set it to zero, PLplot automatically generates a suitable tick interval.nysub(PLINT(3plplot), input) β Number of subintervals between major y axis ticks, for the minor ticks. If you set it to zero, PLplot automatically generates a suitable minor tick interval. πΈ
π AUTHORS π
So many developers contributed to PLplot over its long history, and they're all credited at http://plplot.sourceforge.net/credits.php β kings and queens, every one of them. π
β SEE ALSO β
PLplot documentation at http://plplot.sourceforge.net/documentation.php. go read it, bestie, iykyk π
mwah π that's the whole page β brought to you by the PLplot API gang, dated August, 2026 (and if you saw PLAXES(3plplot) floating around, that's just her full government name π).
π¦ 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