---
name: "plscmap0"
section: "3plplot"
platform: "linux"
package: "plplot-doc"
version: "5.15.0+dfsg2-15"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/plscmap0"
---

# plscmap0(3plplot)

Set cmap0 colors by 8-bit RGB values

## NAME

**plscmap0** - Set cmap0 colors by 8-bit RGB values

## SYNOPSIS

**plscmap0**(*r*, *g*, *b*, *ncol0*)

## DESCRIPTION

Set cmap0 colors using 8-bit RGB values (see the PLplot documentation).  This sets the entire color map -- only as many colors as specified will be allocated.

Redacted form: **plscmap0(r, g, b)**

This function is used in examples 2 and 24.

## ARGUMENTS

- *r* (**PLINT\_VECTOR**(3plplot), input)

  A vector containing unsigned 8-bit integers (0-255) representing the degree of red in the color.

- *g* (**PLINT\_VECTOR**(3plplot), input)

  A vector containing unsigned 8-bit integers (0-255) representing the degree of green in the color.

- *b* (**PLINT\_VECTOR**(3plplot), input)

  A vector containing unsigned 8-bit integers (0-255) representing the degree of blue in the color.

- *ncol0* (**PLINT**(3plplot), input)

  Number of items in the *r*, *g*, and *b* vectors.

## AUTHORS

Many developers (who are credited at http://plplot.org/credits.php) have contributed to PLplot over its long history.

## SEE ALSO

PLplot documentation at http://plplot.org/documentation.php.
