infinite line that works with pan, zoom and auto-scale
infiniLine adds an infinite line to a plot. The line will always extend to the axes boundaries, even after changing the limits or interactive zoom and pan. The infiniLine does not interfere with auto-scale. Two files are required, infiniLine.m contains the function to add the line, infiniLineCallBack.m contains the callback function that is called when the plot is updated.
Cite As
Reto Zingg (2025). infinite line that works with pan, zoom and auto-scale (https://www.mathworks.com/matlabcentral/fileexchange/61214-infinite-line-that-works-with-pan-zoom-and-auto-scale), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Graphics > Formatting and Annotation > Axes Appearance > Limits, Ticks, and Grids > Grid Lines, Tick Values, and Labels >
- MATLAB > Graphics > 2-D and 3-D Plots > Line Plots > Change Markers >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |