PLOT_LINES

Plots vertical lines at points defined on the x-axis.

您现在正在关注此提交

plot_lines(xin) - Plots vertical lines at points defined on the x-axis using red solid lines and the current y-axis limits using a single line handle

plot_lines(xin,[a b]) - Plots the lines from a to b

plot_lines(xin,[],lntype) - Plots the lines using the current y-axis limits using the line type deined by lntype

h = plot_lines(xin,[a b],lntype) - Returns the handle to the vertcal lines

Ex.)
figure(1);clf;
plot(randn(1,1000));
x = [10 170 300 450 600 800 990];
hold on;
plot_lines(x,[],'b:');

引用格式

Sww (2026). PLOT_LINES (https://ww2.mathworks.cn/matlabcentral/fileexchange/4520-plot_lines), MATLAB Central File Exchange. 检索时间: .

类别

Help CenterMATLAB Answers 中查找有关 Creating, Deleting, and Querying Graphics Objects 的更多信息

一般信息

MATLAB 版本兼容性

  • 兼容任何版本

平台兼容性

  • Windows
  • macOS
  • Linux
版本 已发布 发行说明 Action
1.0.0.0