hr(yPos) plot a horizontal line at yPos getting current axis values with default color gray, line width 1, and a solid line with no markers.
However, hr(yPos,varargin) plot a horizontal line at yPos getting current axis, while varargin takes any plot property as defined in built-in plot function in Matlab.
引用格式
Shoaibur Rahman (2024). Horizontal line on a figure (https://www.mathworks.com/matlabcentral/fileexchange/48736-horizontal-line-on-a-figure), MATLAB Central File Exchange. 检索时间: .
MATLAB 版本兼容性
创建方式
R2014b
兼容任何版本
平台兼容性
Windows macOS Linux类别
- MATLAB > Graphics > 2-D and 3-D Plots > Line Plots >
在 Help Center 和 MATLAB Answers 中查找有关 Line Plots 的更多信息
标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!