PLOT3D(3plplot)
β¨ PLOT3D β plot3d(3plplot) β¨
okay bestie, so this one is from the PLplot API and it's literally the 3-D surface plot function, and it's lowkey iconic. π
π NAME π
plot3d β plot a 3-d surface plot. no cap, that's the whole vibe check. π¦
π SYNOPSIS π
plot3d(x, y, z, nx, ny, opt, side)
π DESCRIPTION π
So here's the tea: plot3d plots a three-dimensional surface plot within the environment set up by plw3d(3plplot). β¨ Like, plw3d builds the stage and then plot3d is the main character up there performing.
The surface is defined by the matrix z[nx][ny], where the point z[i][j] is the value of the function at (x[i],y[j]). Obsessed with that indexing honestly. π«Ά
Note β and this is important bestie β the points in vectors x and y do not need to be equally spaced, but they must be stored in ascending order. That's not a suggestion, that's the rule, periodt. π
The parameter opt controls the way in which the surface is displayed. For further details see the PLplot documentation. π
And here's the sibling situation you need to know about: the only difference between plmesh(3plplot) and plot3d(3plplot) is that plmesh(3plplot) draws the bottom side of the surface, while plot3d(3plplot) only draws the surface as viewed from the top. So one is giving underneath energy and the other is giving top-down, and it's literally just that. π
Redacted form: plot3d(x, y, z, opt, side)
This function is used in examples 11 and 21. π₯
β 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, and honestly the options are a whole menu of aesthetics:opt=DRAW_LINEX: Lines are drawn showingzas a function ofxfor each value ofy[j]. πΈopt=DRAW_LINEY: Lines are drawn showingzas a function ofyfor each value ofx[i]. πΈopt=DRAW_LINEXY: Network of lines is drawn connecting points at which function is defined. π
side(PLBOOL(3plplot), input) β Flag to indicate whether or not ``sides'' should be draw on the figure. Ifsideis true sides are drawn, otherwise no sides are drawn. π
π AUTHORS π
Many developers (who are credited at http://plplot.sourceforge.net/credits.php) have contributed to PLplot over its long history. π
π¦ SEE ALSO π¦
PLplot documentation at http://plplot.sourceforge.net/documentation.php. π
okay bestie real talk:plot3donly gives you the top view of the surface, so if you were hoping for the underside moment you gotta go findplmesh(3plplot). iykyk π
that's the whole page, and it's sourced and versioned as of August, 2026 β mwah, slay, go make some gorgeous 3-d surfaces. ππ§ββοΈ
π¦ 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