PLSCMAP1(3plplot)
π PLSCMAP1 β like, the PLplot API manual, bestie β¨
okay so first things first, this page lives in the PLplot API man-verse (yes that's the manual name, we're folding it in here so it doesn't get lonely) and it's about one (1) function that lowkey runs the whole colorful vibe ππ
πΈ NAME πΈ
plscmap1 β sets the opaque RGB cmap1 color values. that's it, that's the whole job, and it ate π
π¦ SYNOPSIS π¦
plscmap1(r, g, b, ncol1)
β¨ DESCRIPTION β¨
okay so picture this: you're setting the opaque cmap1 colors (the PLplot documentation has the whole lore on this, go read it, iykyk) using RGB vector values. and a lil bonus β this function also sets the number of cmap1 colors. two birds, one function, we love efficiency π«Ά
now here's the tea, and it's important tea β (N.B. energy): continuous cmap1 colors are indexed with a floating-point index in the range from 0.0-1.0, which gets linearly transformed (like, for example, by plcol1(3plplot)) into an integer index of these RGB vectors in the range from 0 to ncol1-1.
so for this continuous color model to work properly, it is the user's responsibility β yes, yours, main character β to ensure that these RGB vectors are continuous functions of their integer indices. no cap, if you hand it a jagged mess, that's on you bestie π
Redacted form: plscmap1(r, g, b)
and pssst β this function is used in example 31. go look at it, it's giving tutorial core π
π ARGUMENTS π
r(PLINT_VECTOR(3plplot), input) β a vector representing (using unsigned 8-bit integers in the range from0-255) the degree of red in the color, as a continuous function of the integer index of the vector. red girlie π₯g(PLINT_VECTOR(3plplot), input) β a vector representing (using unsigned 8-bit integers in the range from0-255) the degree of green in the color, as a continuous function of the integer index of the vector. green flag behavior πΏb(PLINT_VECTOR(3plplot), input) β a vector representing (using unsigned 8-bit integers in the range from0-255) the degree of blue in the color, as a continuous function of the integer index of the vector. blue era πncol1(PLINT(3plplot), input) β the number of items in ther,g, andbvectors. one number to rule them all π
π AUTHORS π
Many developers (who are credited at http://plplot.sourceforge.net/credits.php) have contributed to PLplot over its long history. literal icons, every single one of them, we stan a collaborative legacy π«Άβ¨
π SEE ALSO π
PLplot documentation at http://plplot.sourceforge.net/documentation.php. go, read, be enlightened π¦
so yeah, that's the whole page π this was the PLplot API edition, dated August, 2026, and the page tag is PLSCMAP1(3plplot) in case you need to cite your sources like the academic queen you are. mwah, go make something pretty πβ¨πΈ
π¦ 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