Improved 'vline'

Same syntax as original 'vline', but with several improvements.

You are now following this Submission

Several improvements to original 'vline':
- Vectorize plotting for speed
- Allow axes handle(s) to be specified
- Allow standard line options, e.g. 'linewidth'
- Rotate labels if requested
- Identify lines with 'vline' tags
- Remove existing vertical lines easily with 'clear'.

Cite As

Karl (2026). Improved 'vline' (https://au.mathworks.com/matlabcentral/fileexchange/29578-improved-vline), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired by: hline and vline

Inspired: hfill and vfill

Categories

Find more on Language Fundamentals in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.4.0.0

Added support for standard line options, e.g. 'linewidth'

1.1.0.0

Bug fix.

1.0.0.0