plotyy (Series)
Line plot function with LHS and RHS axes for time series
Syntax
[Ax, Lhs, Rhs, Range] = plotyy(X, Y, ...)
[Ax, Lhs, Rhs, Range] = plotyy(Range, X, Y, ...)
[Ax, Lhs, Rhs, Range] = plotyy(LhsRange, X, RhsRange, Y, ...)
Input arguments
Range [ numeric | char ]
Date range; if not specified the entire range of the input tseries object will be plotted.
LhsRange [ numeric | char ]
LHS plot date range.
RhsRange [ numeric | char ]
RHS plot date range.
X [ Series ]
Input tseries object whose columns will be plotted and labelled on the LHS.
Y [ Series ]
Input tseries object whose columns will be plotted and labelled on the RHS.
Output arguments
Ax [ Axes ]
Handles to the LHS and RHS axes.
Lhs [ Axes ]
Handles to series plotted on the LHS axis.
Rhs [ Line ]
Handles to series plotted on the RHS axis.
Range [ numeric ]
Actually plotted date range.
Options
'Coincide=' [ true | false ]
Make the LHS and RHS y-axis grids coincide.
'LhsPlotFunc=' [ @area | @bar | @plot | @stem ]
Function that will be used to plot the LHS data.
'LhsTight=' [ true | false ]
Make the LHS y-axis tight.
'RhsPlotFunc=' [ @area | @bar | @plot | @stem ]
Function that will be used to plot the RHS data.
'RhsTight=' [ true | false ]
Make the RHS y-axis tight. See help on
tseries/plotand the built-in functionplotyyfor all options available.
Description
Examples