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

Options

See dat2str for date formatting options available.

-IRIS Toolbox. -Copyright (c) 2007-2015 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');