hline and vline
Note de l’éditeur : Popular File 2019
This file was a File Exchange Pick of the WeekThese functions draw horizontal or vertical lines at specified places on the current axes. The axes are automatically held for the drawing of the lines, and restored to their previous 'hold' states afterwards. THe HandleVisibility of the new lines is "off" so that they don't appear on legends. (Incidentally, this also makes them invisible to moveplot.m and addplot.m) Objects with HandleVisibility set to off can be "found" by setting the root object's "ShowHiddenHandles" property to "on". Also, if an output argument is specified, the function will return the handle to the otherwise 'hidden' object.
Further arguments allow the user to set the linetype and color of the line (default is 'r:'), and to add labels. For example:
h = vline(42,'g','The Answer')
will return a handle to a vertical line at x=42 on the current axes, colored green, and with a text label "The Answer" on the axes close to the line, and in the same color of the line.
hline and vline both accept vector inputs.
Citation pour cette source
Brandon Kuczenski (2024). hline and vline (https://www.mathworks.com/matlabcentral/fileexchange/1039-hline-and-vline), MATLAB Central File Exchange. Extrait(e) le .
Compatibilité avec les versions de MATLAB
Plateformes compatibles
Windows macOS LinuxCatégories
Tags
Remerciements
A inspiré : hline&vline (log scale support), Equation Roots' Finder-Graphical Solutions, MRI Brain Segmentation, Thresholding Tool, Demos from Image Processing Webinar 2006, Advanced hline and vline, Manual Thresholding Tool, Improved 'vline', hfill and vfill, Bootstrap Gait Curves
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Découvrir Live Editor
Créez des scripts avec du code, des résultats et du texte formaté dans un même document exécutable.
Version | Publié le | Notes de version | |
---|---|---|---|
1.0.0.0 |