Financial Time Series    
plot

Plot data series

Syntax

Arguments

tsobj
Financial time series object
linefmt
(Optional) Line format

Description

plot(tsobj) plots the data series contained in the object tsobj. Each data series will be a line. plot automatically generates a legend as well as dates on the x-axis. Grid is turned on by default. plot uses the default color order as if plotting a matrix.

hp = plot(tsobj) additionally returns the handle(s) to the object(s) inside the plot figure. If there are multiple lines in the plot, hp is a vector of multiple handles.

plot(tsobj, linefmt) plots the data series in tsobj using format specified. For a list of possible line formats, see plot in the MATLAB documentation. The plot legend will not be generated, but the dates on x-axis and the plot grid will. The specified line format is applied to all data series; that is, all data series can have the same line type.

hp = plot(tsobj, linefmt) additionally plots the data series in tsobj using format specified. The plot legend will not be generated, but the dates on x-axis and the plot grid will. The specified line format is applied to all data series; that is, all data series can have the same line type. If there are multiple lines in the plot, hp is a vector of multiple handles.

See Also

grid, legend, and plot in the MATLAB documentation

candle, chartfts, highlow


 peravg plus