IRIS Toolbox Reference Manual

## datxtick

Change ticks, labels and/or date frequency on x-axis in existing tseries graphs

#### Syntax

    datxtick(Range,...)
    datxtick(Ax,Range,...)

#### Input arguments

- `Ax` [ numeric ] - Handle to the axes object where the changes will be made; if not specified, the current axes object, `gca()`, is changed.

- `Range` [ numeric ] - New date range to which the x-axis will be changed.

#### Options

- `'datePosition='` [ `'start'` | `'centre'` | `'end'` ] - Where within each given period the date tick will be placed (at the beginning of the period, in the middle of the period, or at the end of the period).

- `'dateTicks='` [ numeric | `Inf` ] - Individual date ticks; if `Inf`, the ticks will be determined automatically using the standard Matlab algorithm.

See `dat2str` for date formatting options available.

-IRIS Toolbox. -Copyright (c) 2007-2014 IRIS Solutions Team.

#### Description

#### Example

Create a graph plotting a quarterly series, and then change the ticks and labels on the x-axis to monthly:

    x = tseries(qq(2010,1):qq(2011,4),@rand);
    plot(x);
    datxtick(mm(2010,1):mm(2011,12),'dateFormat=','Mmm YYYY');

IRIS Toolbox. Copyright © 2007—2013 Jaromir Benes.