PLSURF3DL(3plplot)
π PLSURF3DL β plot a shaded 3-d surface, but make it lopsided π
okay so bestie, this is a PLplot API page (3plplot), and we're talking about the plsurf3dl function. Buckle up, she's a little extra but she's iconic.
β¨ NAME β¨
plsurf3dl β plot a shaded 3-d surface plot for z[x][y] with y index limits. yes, "3-d", she's got depth, literally.
π SYNOPSIS π
plsurf3dl(x, y, z, nx, ny, opt, clevel, nlevel, indexxmin, indexxmax,
indexymin, indexymax)
πΈ DESCRIPTION πΈ
So basically this is a variant of plsurf3d(3plplot) β go read that function's docs for the full tea, because there's more detail over there π«Ά. But plsurf3dl is the one you want when the area of the x, y coordinate grid where z is defined can be non-rectangular. Like, the grid isn't a nice lil rectangle, it's shaped. And that's fine! She's got range π
.
The limits of that grid are handed to you by the parameters indexxmin, indexxmax, indexymin, and indexymax. That's the whole personality.
Redacted form (the shorter vibe): plsurf3dl(x, y, z, opt, clevel, indexxmin, indexymin, indexymax)
This function is used in example 8. go look, it's cute β¨
π¦ 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. the actual content, the star of the show π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. And here's the whole menu, bestie: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 ofZ; 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). lowkey a whole lighting setup, she's got a glam team π§
clevel(PLFLT_VECTOR(3plplot), input) β A vector containing the contour levels.nlevel(PLINT(3plplot), input) β Number of elements in theclevelvector.indexxmin(PLINT(3plplot), input) β The index value (which must be β₯ 0) that corresponds to the first x index wherezis defined. no negatives, periodt.indexxmax(PLINT(3plplot), input) β The index value (which must be β€ nx) which corresponds (by convention) to one more than the last x index value wherezis defined. yeah, "one more than the last" is just how she rolls πindexymin(PLINT_VECTOR(3plplot), input) β A vector containing the y index values which all must be β₯ 0. These values are the first y index wherezis defined for a particular x index in the range fromindexxmintoindexxmax - 1. The dimension ofindexyminisindexxmax.indexymax(PLINT_VECTOR(3plplot), input) β A vector containing the y index values which all must be β€ ny. These values correspond (by convention) to one more than the last y index wherezis defined for a particular x index in the range fromindexxmintoindexxmax - 1. The dimension ofindexymaxisindexxmax.
β οΈ note the bounds, bestie:indexxminβ₯ 0,indexxmaxβ€nx,indexyminvalues β₯ 0,indexymaxvalues β€ny. don't come for me if you ignore these, that's on you π
π AUTHORS π
Many developers (who are credited at http://plplot.sourceforge.net/credits.php) have contributed to PLplot over its long history. a whole squad, honestly, legends only π
β SEE ALSO β
PLplot documentation at http://plplot.sourceforge.net/documentation.php. go read, it's giving educational π
that's the whole page, no cap β¨ mwah π β page PLSURF3DL(3plplot), from the PLplot API, dated August, 2026. bye bestie, slay your surface plots ππ¦
π¦ 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