plotdata matlab,Plot data series

Description

plot(tsobj) plots the data series contained in the object

tsobj. Each data series is a line. plot

automatically generates a legend and dates on the x-axis. Grid is

turned on by default. plot uses the default color order as if

plotting a matrix.

The plot command automatically creates subplots when multiple time

series are encountered, and they differ greatly on their decimal scales. For example,

subplots are generated if one time series data set is in the 10s and another is in the

10,000s.

hp = plot(tsobj) also 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 the line format specified. For a list of possible

line formats, see plot. The plot legend is not generated,

but the dates on the x-axis and the plot grid are. The specified

line format is applied to all data series; that is, all data series have the same line

type.

hp = plot(tsobj,linefmt) plots the data series in

tsobj using the format specified. The plot legend is not

generated, but the dates on the x-axis and the plot grid are. 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.

plot(..., volumename,bar) also specifies which data series is the

volume. The volume is plotted in a subplot below the other data series. If

bar = 1, the volume is plotted as a bar chart.

Otherwise, a line plot is used.

hp = plot(..., volumename,bar) returns handles for each line. If

bar = 1, the handle to the patch for the bars is also

returned.

Note

To turn off the legend, enter legend off at the

MATLAB® command line. Once you turn it off, the legend is deleted. To turn it

back on, recreate it using the legend command as if you are

creating it for the first time. To turn off the grid, enter

grid off. To turn it back on, enter

grid on.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值