PLMESHC(3plplot)
π PLMESHC(3plplot) β the PLplot API, bestie edition π
okay so you're in the PLplot manual, section 3plplot, and today's main character is plmeshc. buckle up bestie, this one's a glow-up of a classic β¨
β¨ NAME β¨
plmeshc β magnitude colored plot surface mesh with contour. yes that's the whole name, it's giving "I do three things at once and I do them well" π
πΈ SYNOPSIS πΈ
plmeshc(x, y, z, nx, ny, opt, clevel, nlevel)
π¦ DESCRIPTION π¦
So plmeshc is literally the more powerful form of plmesh(3plplot), no cap. It leveled up in three iconic ways:
- the surface mesh can be colored accordingly to the current z value being plotted π₯
- a contour plot can be drawn at the base XY plane β¨
- a curtain can be drawn between the plotted function border and the base XY plane π
Redacted form: plmeshc(x, y, z, opt, clevel)
This function is used in example 11. iykyk π
π§ ARGUMENTS π§
x(PLFLT_VECTOR(3plplot), input) β a vector containing the x coordinates at which the function is evaluated. that's it, that's the vibe πy(PLFLT_VECTOR(3plplot), input) β a vector containing the y coordinates at which the function is evaluated. matching energy, love that for us πΈz(PLFLT_MATRIX(3plplot), input) β a matrix containing function values to plot. should have dimensions ofnxbyny. so like, the actual data, the moment, the reason we're all here β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. here's the trick bestie: to specify more than one option just add the options, e.g.DRAW_LINEXY + MAG_COLOR. now let's break down the whole menu πopt=DRAW_LINEX: lines are drawn showing z as a function of x for each value ofy[j].opt=DRAW_LINEY: lines are drawn showing z as a function of y for each value ofx[i].opt=DRAW_LINEXY: network of lines is drawn connecting points at which function is defined.opt=MAG_COLOR: each line in the mesh is colored according to the z value being plotted. the color is used from the currentcmap1.opt=BASE_CONT: a contour plot is drawn at the base XY plane using parametersnlevelandclevel.opt=DRAW_SIDES: draws a curtain between the base XY plane and the borders of the plotted function.
clevel(PLFLT_VECTOR(3plplot), input) β a vector containing the contour levels. these are the contour vibes πnlevel(PLINT(3plplot), input) β number of elements in theclevelvector π
fr fr do not skip an option name or smash two together β they're additive, not merged. DRAW_LINEXY + MAG_COLOR is the blueprint, periodt π
π AUTHORS π
Many developers (who are credited at http://plplot.sourceforge.net/credits.php) have contributed to PLplot over its long history. genuine icons, all of them π«Ά
π SEE ALSO π
PLplot documentation at http://plplot.sourceforge.net/documentation.php.
k that's the whole page bestie, go plot something gorgeous πβ¨
August, 2026 Β· PLMESHC(3plplot) β mwah, that's the source/version and date, signing off π
π¦ 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