PLSURF3D(3plplot)
β¨ PLSURF3D β¨ (that's plsurf3d from the PLplot API, bestie)
Okay so picture this: you want a shaded 3-D surface plot and you want it to slay. That's literally this function. It's the plsurf3d girlie from the PLplot crew π
πΈ SYNOPSIS πΈ
plsurf3d(x, y, z, nx, ny, opt, clevel, nlevel)
π¦ DESCRIPTION π¦
So plsurf3d plots a three-dimensional shaded surface plot β but like, inside the environment you already set up with plw3d(3plplot). She doesn't build her own stage, she performs on yours, periodt.
The surface is defined by the two-dimensional matrix z[nx][ny], and the point z[i][j] is the value of the function at (x[i],y[j]). Note (and this is important, no cap) that the points in vectors x and y do not need to be equally spaced, but they must be stored in ascending order. For further details see the PLplot documentation.
Redacted form: plsurf3d(x, y, z, opt, clevel)
Lowkey iconic detail: this function is not used in any examples. She's a main character with no cameos. π
π ARGUMENTS π
x(PLFLT_VECTOR(3plplot), input) β A vector containing the x coordinates at which the function is evaluated.y(PLFLT_VECTOR(3plplot), input) β A vector containing the y coordinates at which the function is evaluated.z(PLFLT_MATRIX(3plplot), input) β A matrix containing function values to plot. Should have dimensions ofnxbyny.nx(PLINT(3plplot), input) β Number of x values at which function is evaluated.ny(PLINT(3plplot), input) β Number of y values at which function is evaluated.opt(PLINT(3plplot), input) β Determines the way in which the surface is represented. To specify more than one option just add the options, e.g.FACETED + SURF_CONT. The options are:opt=FACETEDβ Network of lines is drawn connecting points at which function is defined.opt=BASE_CONTβ A contour plot is drawn at the base XY plane using parametersnlevelandclevel.opt=SURF_CONTβ A contour plot is drawn at the surface plane using parametersnlevelandclevel.opt=DRAW_SIDESβ draws a curtain between the base XY plane and the borders of the plotted function.opt=MAG_COLORβ the surface is colored according to the value of Z; ifMAG_COLORis not used, then the surface is colored according to the intensity of the reflected light in the surface from a light source whose position is set usingpllightsource(3plplot).
clevel(PLFLT_VECTOR(3plplot), input) β A vector containing the contour levels.nlevel(PLINT(3plplot), input) β Number of elements in theclevelvector.
π AUTHORS π
Many developers (who are credited at http://plplot.sourceforge.net/credits.php) have contributed to PLplot over its long history. Fr fr, a whole village of legends π«Ά
π SEE ALSO π
PLplot documentation at http://plplot.sourceforge.net/documentation.php.
And that's the whole vibe check, bestie β¨ This lil page is from the PLplot API docs, dated August, 2026, and you were reading PLSURF3D(3plplot) β go forth and shade those surfaces, you absolute icon ππ
π¦ 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