Vous suivez désormais cette soumission
- Les mises à jour seront visibles dans votre flux de contenu suivi
- Selon vos préférences en matière de communication il est possible que vous receviez des e-mails
I needed to draw some vertical markers to my plots in GUI, so I checked out Brandon Kuczenski's hline/vline submission. However it doesn't accept axes handle as an input argument.
Getting around by switching with 'gca' causes weird behavior due to uncertain timing in GUI. So I reverse engineered the basic idea in his code and added in a few degrees of freedom. I hope this will help other MATLAB GUI programmers.
I haven't done any extensive testing as I'm busy with with my project on hand. Please send any suggestions, bug reports to wonghoi.ee@gmail.com. Thanks!
Citation pour cette source
Hoi Wong (2026). Advanced hline and vline (https://fr.mathworks.com/matlabcentral/fileexchange/18796-advanced-hline-and-vline), MATLAB Central File Exchange. Extrait(e) le .
Remerciements
Inspiré par : hline and vline
Catégories
En savoir plus sur Grid Lines, Tick Values, and Labels dans Help Center et MATLAB Answers
Informations générales
- Version 1.2.0.0 (4,08 ko)
Compatibilité avec les versions de MATLAB
- Compatible avec toutes les versions
Plateformes compatibles
- Windows
- macOS
- Linux
| Version | Publié le | Notes de version | Action |
|---|---|---|---|
| 1.2.0.0 | Added textHandle as an optional output and yLimits for vline() and xLimits for hline() as optional inputs. |
||
| 1.1.0.0 | Refactored to enable linePropertiesList, textPropertiesList, isLineColorSynchronizedWithText |
||
| 1.0.0.0 | Updated description |
