dashLine
The title is self-explanatory. This function actually converts a point sequence into several new point sequences. To visualize the line afterwards, you must plot using a full line. Inputing the current axis into the function allows you to specify the dash(es) and space(s) lengths in points instead of data units, and respects the on-screen data ratio.
Cite As
Joss Duchateau (2024). dashLine (https://www.mathworks.com/matlabcentral/fileexchange/52563-dashline), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Graphics > 2-D and 3-D Plots > Line Plots >
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.2.0.0 | Changed the functions a bit to handle semilog and loglog plots |
||
1.1.0.0 | Added the convertDash routine which makes conversion from standard LineStyles to custom dashes easy.
|
||
1.0.0.0 |