dashLine

Create custom dash lines with any sequence of dashes
162 téléchargements
Mise à jour 19 août 2015

Afficher la licence

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.

Citation pour cette source

Joss Duchateau (2025). dashLine (https://fr.mathworks.com/matlabcentral/fileexchange/52563-dashline), MATLAB Central File Exchange. Extrait(e) le .

Compatibilité avec les versions de MATLAB
Créé avec R2014a
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
Catégories
En savoir plus sur Line Plots dans Help Center et MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Publié le Notes de version
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.
Just plot in a standard way with a 'Tag' argument of your choice and use convertDash('tagname', dashsize, spacesize) to convert plot and legend.

1.0.0.0