File Exchange

image thumbnail

Improved 'vline'

version (5.95 KB) by Karl
Same syntax as original 'vline', but with several improvements.


Updated 10 Dec 2010

View License

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 (2020). Improved 'vline' (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (0)


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

Bug fix.

MATLAB Release Compatibility
Created with R2009b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Inspired by: hline and vline

Inspired: hfill and vfill