PLSCMAP0N(3plplot)
β¨ PLSCMAP0N β¨
okay so bestie, welcome to the PLplot API glow-up of PLSCMAP0N β yes the whole page is in caps, it's giving very main character, we love that for it. π
πΈ NAME πΈ
plscmap0n β set the number of colors in cmap0, like a vibe check but for your palette π¨
π¦ SYNOPSIS π¦
plscmap0n(ncol0)
π DESCRIPTION π
So plscmap0n sets how many colors live in cmap0 (peep the PLplot documentation for the full tea β). It allocates β or reallocates, no cap β cmap0, and then fills in default values for any of those colors that weren't already allocated before. Basically it's restocking the shelves, but make it color. π
The first 16 default colors are listed in the plcol0(3plplot) documentation, iykyk. For any index bigger than that, the default color is red. That's it. That's the color. π©
β οΈ heads up bestie: the drivers are not guaranteed to support more than 16 colors. So like, you can ask for more, but the driver might just not show up to the party. π
Redacted form: plscmap0n(ncol0) β yes they literally call it the "redacted form," we're not gonna question it, it's iconic. π
This function is used in examples 15, 16, and 24. Slay, honestly. π
π ARGUMENTS π
ncol0(PLINT(3plplot), input ) β the number of colors that will be allocated in thecmap0palette. πΈ And here's the little plot twist: if this number is zero or less, then the value from the previous call toplscmap0n(3plplot)gets used instead β and if there's no previous call, then a default value steps in. So0is basically "girl, use whatever we had before." π
π«Ά AUTHORS π«Ά
So many developers have contributed to PLplot over its long, long history β they're all credited at http://plplot.sourceforge.net/credits.php. Give them their flowers, fr fr. π
β SEE ALSO β
- PLplot documentation at
http://plplot.sourceforge.net/documentation.phpβ go read it, it's giving study session bestie πβ¨
and that's the whole page, bestie!! no notes, 10/10, ate and left no crumbs π
this has been PLSCMAP0N(3plplot) from the PLplot API β dated August, 2026, which is lowkey wild but okay we're manifesting π
π¦ see you in the next manpage, love u!! π«Άπ
π¦ 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