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

# pllightsource(3plplot)

Sets the 3D position of the light source

## NAME

**pllightsource** - Sets the 3D position of the light source

## SYNOPSIS

**pllightsource**(*x*, *y*, *z*)

## DESCRIPTION

Sets the 3D position of the light source for use with [**plsurf3d**(3plplot)](/plsurf3d/3plplot.md) and [**plsurf3dl**(3plplot)](/plsurf3dl/3plplot.md)

Redacted form: **pllightsource(x, y, z)**

This function is used in example 8.

## ARGUMENTS

- *x* (**PLFLT**(3plplot), input)

  X-coordinate of the light source.

- *y* (**PLFLT**(3plplot), input)

  Y-coordinate of the light source.

- *z* (**PLFLT**(3plplot), input)

  Z-coordinate of the light source.

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