You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
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.
Cite As
Shoaibur Rahman (2026). Horizontal line on a figure (https://www.mathworks.com/matlabcentral/fileexchange/48736-horizontal-line-on-a-figure), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.1.0.0 (675 Bytes)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
