PLSCMAP1N(3plplot)
π PLSCMAP1N β plscmap1n(3plplot), the PLplot API bestie β¨
Okay so bestie, real talk: this one's from the PLplot API and it's short but it matters. Let's get into it π
πΈ NAME πΈ
plscmap1n β sets the number of colors in cmap1. That's it. That's the whole vibe. π
β¨ SYNOPSIS β¨
plscmap1n(ncol1)
π¦ DESCRIPTION π¦
So what does it do? It sets the number of colors in cmap1, (re-)allocates cmap1, and sets the default values if this is the first allocation (peep the PLplot documentation for the deets, iykyk).
Redacted form, since apparently we're being all formal: plscmap1n(ncol1)
This function is used in examples 8, 11, 20, and 21. So yeah, she gets around π
π§ ARGUMENTS π§
ncol1(PLINT(3plplot), input) β the number of colors that will be allocated in the cmap1 palette. And here's the cute part: if this number is zero or less, then the value from the previous call toplscmap1n(3plplot)gets used instead, and if there's no previous call, then a default value is used. Very "i'll just do what i did last time" of her fr fr π«Ά
π AUTHORS π
Many developers (who are credited at http://plplot.sourceforge.net/credits.php) have contributed to PLplot over its long history. Absolute icons, every single one πβ
π SEE ALSO π
PLplot documentation at http://plplot.sourceforge.net/documentation.php. Go read it, it's giving lore πβ¨
Lowkey a glow-up for your palette ngl β just remember that zero-or-less doesn't mean "no colors", it means "same as last time (or the default)". Not me almost forgetting that π
Alright bestie, that's the whole page π β signing off from August, 2026 with PLSCMAP1N(3plplot) energy. Slay, and may your cmap1 always be allocated correctly ππ§ββοΈ
π¦ 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