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

# plspal1(3plplot)

Set the cmap1 palette using the specified cmap1\*.pal format file

## NAME

**plspal1** - Set the cmap1 palette using the specified cmap1\*.pal format file

## SYNOPSIS

**plspal1**(*filename*, *interpolate*)

## DESCRIPTION

Set the cmap1 palette using the specified cmap1\*.pal format file.

Redacted form: **plspal1(filename, interpolate)**

This function is used in example 16.

## ARGUMENTS

- *filename* (**PLCHAR\_VECTOR**(3plplot), input)

  An ascii character string containing the name of the cmap1\*.pal file.  If this string is empty, use the default cmap1\*.pal file.

- *interpolate* (**PLBOOL**(3plplot), input)

  If this parameter is true, the columns containing the intensity index, r, g, b, alpha and alt\_hue\_path in the cmap1\*.pal file are used to set the cmap1 palette with a call to [**plscmap1la**(3plplot)](/plscmap1la/3plplot.md). (The cmap1\*.pal header contains a flag which controls whether the r, g, b data sent to [**plscmap1la**(3plplot)](/plscmap1la/3plplot.md) are interpreted as HLS or RGB.) If this parameter is false, the intensity index and alt\_hue\_path columns are ignored and the r, g, b (interpreted as RGB), and alpha columns of the cmap1\*.pal file are used instead to set the cmap1 palette directly with a call to [**plscmap1a**(3plplot)](/plscmap1a/3plplot.md).

## 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.
