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 from 0-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 from 0-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 from 0-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 the r, g, and b vectors. 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