IRIS Toolbox Reference Manual

## spy

Visualise tseries observations that pass a test

#### Syntax

    [AA,LL] = spy(X,...)
    [AA,LL] = spy(RANGE,X,...)

#### Input arguments

- `X` [ tseries ] - Input tseries object whose non-NaN observations will be plotted as markers.

- `RANGE` [ tseries ] - Date range on which the tseries observations will be visualised; if not specified the entire available range will be used.

#### Output arguments

- `AA` [ tseries ] - Handle to the axes created.

- `LL` [ tseries ] - Handle to the marks plotted.

#### Options

- `'dateformat='` [ char | irisget('plotdateformat') ] - Date format for the tick marks on the x-axis.

- `'datetick='` [ numeric | `Inf` ] - Vector of dates locating tick marks on the x-axis; Inf means they will be created automatically.

- `'names='` [ cellstr ] - Names that will be used to annotate individual columns of the input tseries object.

- `'test='` [ function_handle | @(x)~isnan(x) ] - Test applied to each observations; only the values returning a true will be displayed.

#### Description

#### Example

IRIS Toolbox. Copyright © 2007—2013 Jaromir Benes.