PLSPAL1(3plplot)

πŸ’… PLSPAL1 β€” like, the whole vibe check on plspal1(3plplot)

okay so bestie, welcome to the PLplot API manual page for plspal1, and yes we are absolutely going to get into it πŸŽ€


✨ NAME ✨

plspal1 β€” sets the cmap1 palette using the cmap1*.pal format file you point at πŸ¦‹

🌸 SYNOPSIS 🌸

plspal1(filename, interpolate)

πŸ’– DESCRIPTION πŸ’–

So basically: this one sets the cmap1 palette using the cmap1*.pal format file you specify. That's the whole job. She's focused, she's iconic, she does one thing πŸ‘‘

Redacted form, since you know the docs love a redacted form: plspal1(filename, interpolate)

And fun fact β€” this function is used in example 16. periodt πŸ’…

🧚 ARGUMENTS 🧚

  • filename (PLCHAR_VECTOR(3plplot), input) β€” an ascii character string holding the name of the cmap1*.pal file. And listen, if this string is empty? It just uses the default cmap1*.pal file. no stress, she's got a fallback 🫢
  • interpolate (PLBOOL(3plplot), input) β€” okay this one's the main character, lemme explain πŸŽ€

If this parameter is true, the columns in the cmap1*.pal file containing the intensity index, r, g, b, alpha and alt_hue_path get used to set the cmap1 palette, with a call to plscmap1la(3plplot). (And heads up β€” the cmap1*.pal header contains a flag that controls whether the r, g, b data sent to plscmap1la(3plplot) gets interpreted as HLS or RGB. iykyk 🌈)

If this parameter is false, then the intensity index and alt_hue_path columns are, like, completely ignored πŸ™ˆ and instead the r, g, b columns (interpreted as RGB) and the alpha column of the cmap1*.pal file get used to set the cmap1 palette directly with a call to plscmap1a(3plplot). two different paths, both valid, we respect both πŸ’œ

πŸ‘‘ AUTHORS πŸ‘‘

Many developers (who are credited at http://plplot.sourceforge.net/credits.php) have contributed to PLplot over its long history. literally so many legends, we love a collaborative queen 🌟

πŸ”₯ SEE ALSO πŸ”₯

PLplot documentation at http://plplot.sourceforge.net/documentation.php β€” go read it bestie, it's giving ✨


and that's the page!! πŸ“ source/version is the PLplot API, dated August, 2026 β€” catch you next time, mwah πŸ’‹πŸ’–

πŸ“¦ where this page comes from