Routines (alphabetical) > Routines: P > PLOTERR Procedure

# PLOTERR Procedure

Note: Please see the newer ERRORPLOT function, which replicates the functionality of this older routine but offers an interactive interface and updated functionality.

The PLOTERR procedure plots individual data points with error bars.

This routine is written in the IDL language. Its source code can be found in the file `ploterr.pro` in the `lib` subdirectory of the IDL distribution.

## Syntax

PLOTERR, [ X ,] Y , Err [, TYPE={1 | 2 | 3 | 4}] [, PSYM=integer{1 to 10}]

## Arguments

### X

An optional array of X values. The procedure checks the number of arguments passed to decide if X was passed. If X is not passed, INDGEN(Y) is assumed for X values.

### Y

The array of Y values. Y cannot be of type string.

### Err

The array of error-bar values.

## Keywords

### TYPE

The type of plot to be produced. The possible types are:

- 1 = X Linear - Y Linear (default)
- 2 = X Linear - Y Log
- 3 = X Log - Y Linear
- 4 = X Log - Y Log

### PSYM

The plotting symbol to use. The default is +7.

## Version History

Original | Introduced

## See Also

ERRPLOT Procedure, ERRORPLOT, OPLOTERR Procedure, PLOT Procedure