PLOT_LINES

Version 1.0.0.0 (597 Bytes) by Sww
Plots vertical lines at points defined on the x-axis.
4.5K Downloads
Updated 25 Feb 2004

No License

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:');

Cite As

Sww (2024). PLOT_LINES (https://www.mathworks.com/matlabcentral/fileexchange/4520-plot_lines), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R13
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Specifying Target for Graphics Output in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0