colorbar

adds a colorbar to the current shaded plot

# Calling Sequence

    colorbar(position)

## Parameters

position

- string

## Description

Displays a colorbar in the functions that produce shaded color graphs, e.g. surf, surfl, pcolor, ... (see examples below).

The string S can take the values

- 'on' or 'left' : the colorbar is placed at the left

- 'right' : at the right

- 'top' : at the top

- 'bot' : at the bottom

- 'off' : removes the colorbar

## Examples

    surf;
    colorbar top

## Screenshot

## See Also

- caxis

## Authors

- Stéphane Mottelet