PLSCMAP1_RANGE(3plplot)

πŸ’… NAME πŸ’…

okay so bestie, <pink>plscmap1_range</pink> β€” it sets the cmap1 argument range for continuous color plots. that's it, that's the whole vibe check ✨


πŸŽ€ SYNOPSIS πŸŽ€

plscmap1_range(min_color, max_color)

like, two arguments, and they're both just numbers. we love a low-maintenance icon πŸ’–


🌈 DESCRIPTION 🌈

so here's the tea, <lavender>cmap1</lavender> has an argument range, right? and this routine sets that range β€” specifically the part of it that lines up with the range of data values you're plotting. it's giving matching energies 🫢

the maximum range, the one that corresponds to the entire <lavender>cmap1</lavender> palette, is 0.0-1.0. so the smaller the <lavender>cmap1</lavender> argument range you specify with this routine, the smaller the subset of the <lavender>cmap1</lavender> color palette that gets used to represent the continuous data you're plotting. tiny range = tiny slice of the palette, no cap πŸ’…

now the boundaries, and listen up bc this part matters:

if min_color is greater than max_color, or max_color is greater than 1.0, or min_color is less than 0.0 β€” then no change is made to the <lavender>cmap1</lavender> argument range. literally nothing happens. the function just looks at your nonsense and goes "no πŸ’€"

(and if you ever need to read the <lavender>cmap1</lavender> argument range back out instead of setting it β€” use <cyan>plgcmap1_range(3plplot)</cyan>. the g is for get, iykyk πŸ‘‘)

Redacted form: plscmap1_range(min_color, max_color)

This function is currently used in example 33. ✨ slay, example 33, main character energy fr fr


🌸 ARGUMENTS 🌸

  • min_color (PLFLT(3plplot), input) β€” the minimum <lavender>cmap1</lavender> argument. if it's less than 0.0, then 0.0 is used instead. basically the floor is the floor πŸŽ€
  • max_color (PLFLT(3plplot), input) β€” the maximum <lavender>cmap1</lavender> argument. if it's greater than 1.0, then 1.0 is used instead. we're clamping, bestie, it's a whole thing πŸ¦‹

🧚 AUTHORS 🧚

Many developers (who are credited at http://plplot.sourceforge.net/credits.php) have contributed to PLplot over its long history. πŸ‘‘ a whole squad, a whole legacy, iconic behavior honestly 🫢


⭐ SEE ALSO ⭐

PLplot documentation at http://plplot.sourceforge.net/documentation.php.


August, 2026 β€” PLplot API β€” PLSCMAP1_RANGE(3plplot) πŸ’œ that's the page, that's the date, that's the source/version, mwah πŸ’‹ go set some ranges bestie βœ¨πŸŽ€

πŸ“¦ where this page comes from