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:
ifmin_coloris greater thanmax_color, ormax_coloris greater than1.0, ormin_coloris less than0.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 than0.0, then0.0is used instead. basically the floor is the floor πmax_color(PLFLT(3plplot), input) β the maximum<lavender>cmap1</lavender>argument. if it's greater than1.0, then1.0is 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
- 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